devtools-tracing 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/dist/lib/front_end/core/common/App.d.ts +3 -0
  2. package/dist/lib/front_end/core/common/AppProvider.d.ts +12 -0
  3. package/dist/lib/front_end/core/common/Base64.d.ts +11 -0
  4. package/dist/lib/front_end/core/common/CharacterIdMap.d.ts +5 -0
  5. package/dist/lib/front_end/core/common/Color.d.ts +383 -0
  6. package/dist/lib/front_end/core/common/ColorConverter.d.ts +24 -0
  7. package/dist/lib/front_end/core/common/ColorUtils.d.ts +45 -0
  8. package/dist/lib/front_end/core/common/Console.d.ts +54 -0
  9. package/dist/lib/front_end/core/common/Debouncer.d.ts +6 -0
  10. package/dist/lib/front_end/core/common/EventTarget.d.ts +23 -0
  11. package/dist/lib/front_end/core/common/Gzip.d.ts +21 -0
  12. package/dist/lib/front_end/core/common/JavaScriptMetaData.d.ts +20 -0
  13. package/dist/lib/front_end/core/common/Lazy.d.ts +4 -0
  14. package/dist/lib/front_end/core/common/MapWithDefault.d.ts +9 -0
  15. package/dist/lib/front_end/core/common/Mutex.d.ts +13 -0
  16. package/dist/lib/front_end/core/common/Object.d.ts +25 -0
  17. package/dist/lib/front_end/core/common/ParsedURL.d.ts +87 -0
  18. package/dist/lib/front_end/core/common/Progress.d.ts +47 -0
  19. package/dist/lib/front_end/core/common/ResolverBase.d.ts +29 -0
  20. package/dist/lib/front_end/core/common/ResourceType.d.ts +89 -0
  21. package/dist/lib/front_end/core/common/ReturnToPanel.d.ts +10 -0
  22. package/dist/lib/front_end/core/common/Revealer.d.ts +79 -0
  23. package/dist/lib/front_end/core/common/Runnable.d.ts +14 -0
  24. package/dist/lib/front_end/core/common/SegmentedRange.d.ts +14 -0
  25. package/dist/lib/front_end/core/common/SettingRegistration.d.ts +175 -0
  26. package/dist/lib/front_end/core/common/Settings.d.ts +168 -0
  27. package/dist/lib/front_end/core/common/SimpleHistoryManager.d.ts +20 -0
  28. package/dist/lib/front_end/core/common/Srcset.d.ts +16 -0
  29. package/dist/lib/front_end/core/common/StringOutputStream.d.ts +10 -0
  30. package/dist/lib/front_end/core/common/TextDictionary.d.ts +11 -0
  31. package/dist/lib/front_end/core/common/Throttler.d.ts +12 -0
  32. package/dist/lib/front_end/core/common/Trie.d.ts +24 -0
  33. package/dist/lib/front_end/core/common/VersionController.d.ts +80 -0
  34. package/dist/lib/front_end/core/common/common.d.ts +35 -0
  35. package/dist/lib/front_end/core/host/AidaClient.d.ts +369 -0
  36. package/dist/lib/front_end/core/host/AidaGcaTranslation.d.ts +9 -0
  37. package/dist/lib/front_end/core/host/DispatchHttpRequestClient.d.ts +14 -0
  38. package/dist/lib/front_end/core/host/GcaTypes.d.ts +405 -0
  39. package/dist/lib/front_end/core/host/GdpClient.d.ts +84 -0
  40. package/dist/lib/front_end/core/host/InspectorFrontendHost.d.ts +29 -0
  41. package/dist/lib/front_end/core/host/InspectorFrontendHostAPI.d.ts +414 -0
  42. package/dist/lib/front_end/core/host/InspectorFrontendHostStub.d.ts +151 -0
  43. package/dist/lib/front_end/core/host/Platform.d.ts +11 -0
  44. package/dist/lib/front_end/core/host/ResourceLoader.d.ts +15 -0
  45. package/dist/lib/front_end/core/host/UserMetrics.d.ts +935 -0
  46. package/dist/lib/front_end/core/host/host.d.ts +12 -0
  47. package/dist/lib/front_end/core/i18n/ByteUtilities.d.ts +11 -0
  48. package/dist/lib/front_end/core/i18n/DevToolsLocale.d.ts +41 -0
  49. package/dist/lib/front_end/core/i18n/NumberFormatter.d.ts +11 -0
  50. package/dist/lib/front_end/core/i18n/i18n.d.ts +6 -0
  51. package/dist/lib/front_end/core/i18n/i18nImpl.d.ts +64 -0
  52. package/dist/lib/front_end/core/i18n/i18nTypes.d.ts +5 -0
  53. package/dist/lib/front_end/core/i18n/time-utilities.d.ts +16 -0
  54. package/dist/lib/front_end/core/platform/ArrayUtilities.d.ts +69 -0
  55. package/dist/lib/front_end/core/platform/Brand.d.ts +21 -0
  56. package/dist/lib/front_end/core/platform/Constructor.d.ts +3 -0
  57. package/dist/lib/front_end/core/platform/DateUtilities.d.ts +2 -0
  58. package/dist/lib/front_end/core/platform/DevToolsPath.d.ts +44 -0
  59. package/dist/lib/front_end/core/platform/HostRuntime.d.ts +3 -0
  60. package/dist/lib/front_end/core/platform/KeyboardUtilities.d.ts +21 -0
  61. package/dist/lib/front_end/core/platform/MapUtilities.d.ts +19 -0
  62. package/dist/lib/front_end/core/platform/MimeType.d.ts +28 -0
  63. package/dist/lib/front_end/core/platform/NumberUtilities.d.ts +14 -0
  64. package/dist/lib/front_end/core/platform/StringUtilities.d.ts +77 -0
  65. package/dist/lib/front_end/core/platform/Timing.d.ts +6 -0
  66. package/dist/lib/front_end/core/platform/TypedArrayUtilities.d.ts +34 -0
  67. package/dist/lib/front_end/core/platform/TypescriptUtilities.d.ts +66 -0
  68. package/dist/lib/front_end/core/platform/UIString.d.ts +3 -0
  69. package/dist/lib/front_end/core/platform/UserVisibleError.d.ts +12 -0
  70. package/dist/lib/front_end/core/platform/api/HostRuntime.d.ts +33 -0
  71. package/dist/lib/front_end/core/platform/api/api.d.ts +2 -0
  72. package/dist/lib/front_end/core/platform/platform.d.ts +18 -0
  73. package/dist/lib/front_end/core/protocol_client/CDPConnection.d.ts +77 -0
  74. package/dist/lib/front_end/core/protocol_client/ConnectionTransport.d.ts +9 -0
  75. package/dist/lib/front_end/core/protocol_client/DevToolsCDPConnection.d.ts +19 -0
  76. package/dist/lib/front_end/core/protocol_client/InspectorBackend.d.ts +221 -0
  77. package/dist/lib/front_end/core/protocol_client/protocol_client.d.ts +5 -0
  78. package/dist/lib/front_end/core/root/DevToolsContext.d.ts +34 -0
  79. package/dist/lib/front_end/core/root/ExperimentNames.d.ts +19 -0
  80. package/dist/lib/front_end/core/root/Runtime.d.ts +339 -0
  81. package/dist/lib/front_end/core/root/root.d.ts +4 -0
  82. package/dist/lib/front_end/core/sdk/AccessibilityModel.d.ts +68 -0
  83. package/dist/lib/front_end/core/sdk/AnimationModel.d.ts +161 -0
  84. package/dist/lib/front_end/core/sdk/AutofillModel.d.ts +23 -0
  85. package/dist/lib/front_end/core/sdk/CPUProfilerModel.d.ts +42 -0
  86. package/dist/lib/front_end/core/sdk/CPUThrottlingManager.d.ts +57 -0
  87. package/dist/lib/front_end/core/sdk/CSSContainerQuery.d.ts +41 -0
  88. package/dist/lib/front_end/core/sdk/CSSFontFace.d.ts +10 -0
  89. package/dist/lib/front_end/core/sdk/CSSLayer.d.ts +9 -0
  90. package/dist/lib/front_end/core/sdk/CSSMatchedStyles.d.ts +116 -0
  91. package/dist/lib/front_end/core/sdk/CSSMedia.d.ts +36 -0
  92. package/dist/lib/front_end/core/sdk/CSSMetadata.d.ts +85 -0
  93. package/dist/lib/front_end/core/sdk/CSSModel.d.ts +186 -0
  94. package/dist/lib/front_end/core/sdk/CSSNavigation.d.ts +10 -0
  95. package/dist/lib/front_end/core/sdk/CSSProperty.d.ts +53 -0
  96. package/dist/lib/front_end/core/sdk/CSSPropertyParser.d.ts +140 -0
  97. package/dist/lib/front_end/core/sdk/CSSPropertyParserMatchers.d.ts +599 -0
  98. package/dist/lib/front_end/core/sdk/CSSQuery.d.ts +21 -0
  99. package/dist/lib/front_end/core/sdk/CSSRule.d.ts +128 -0
  100. package/dist/lib/front_end/core/sdk/CSSScope.d.ts +9 -0
  101. package/dist/lib/front_end/core/sdk/CSSStartingStyle.d.ts +9 -0
  102. package/dist/lib/front_end/core/sdk/CSSStyleDeclaration.d.ts +38 -0
  103. package/dist/lib/front_end/core/sdk/CSSStyleSheetHeader.d.ts +53 -0
  104. package/dist/lib/front_end/core/sdk/CSSSupports.d.ts +10 -0
  105. package/dist/lib/front_end/core/sdk/CategorizedBreakpoint.d.ts +43 -0
  106. package/dist/lib/front_end/core/sdk/ChildTargetManager.d.ts +40 -0
  107. package/dist/lib/front_end/core/sdk/CompilerSourceMappingContentProvider.d.ts +12 -0
  108. package/dist/lib/front_end/core/sdk/Connections.d.ts +36 -0
  109. package/dist/lib/front_end/core/sdk/ConsoleModel.d.ts +124 -0
  110. package/dist/lib/front_end/core/sdk/ConsoleModelTypes.d.ts +6 -0
  111. package/dist/lib/front_end/core/sdk/Cookie.d.ts +68 -0
  112. package/dist/lib/front_end/core/sdk/CookieModel.d.ts +31 -0
  113. package/dist/lib/front_end/core/sdk/CookieParser.d.ts +14 -0
  114. package/dist/lib/front_end/core/sdk/DOMDebuggerModel.d.ts +123 -0
  115. package/dist/lib/front_end/core/sdk/DOMModel.d.ts +378 -0
  116. package/dist/lib/front_end/core/sdk/DebuggerModel.d.ts +269 -0
  117. package/dist/lib/front_end/core/sdk/EmulationModel.d.ts +92 -0
  118. package/dist/lib/front_end/core/sdk/EnhancedTracesParser.d.ts +105 -0
  119. package/dist/lib/front_end/core/sdk/EventBreakpointsModel.d.ts +63 -0
  120. package/dist/lib/front_end/core/sdk/FrameAssociated.d.ts +6 -0
  121. package/dist/lib/front_end/core/sdk/FrameManager.d.ts +68 -0
  122. package/dist/lib/front_end/core/sdk/HeapProfilerModel.d.ts +75 -0
  123. package/dist/lib/front_end/core/sdk/HttpReasonPhraseStrings.d.ts +5 -0
  124. package/dist/lib/front_end/core/sdk/IOModel.d.ts +10 -0
  125. package/dist/lib/front_end/core/sdk/IsolateManager.d.ts +52 -0
  126. package/dist/lib/front_end/core/sdk/IssuesModel.d.ts +28 -0
  127. package/dist/lib/front_end/core/sdk/LayerTreeBase.d.ts +70 -0
  128. package/dist/lib/front_end/core/sdk/LogModel.d.ts +20 -0
  129. package/dist/lib/front_end/core/sdk/NetworkManager.d.ts +414 -0
  130. package/dist/lib/front_end/core/sdk/NetworkRequest.d.ts +424 -0
  131. package/dist/lib/front_end/core/sdk/OverlayColorGenerator.d.ts +14 -0
  132. package/dist/lib/front_end/core/sdk/OverlayModel.d.ts +161 -0
  133. package/dist/lib/front_end/core/sdk/OverlayPersistentHighlighter.d.ts +116 -0
  134. package/dist/lib/front_end/core/sdk/PageLoad.d.ts +14 -0
  135. package/dist/lib/front_end/core/sdk/PageResourceLoader.d.ts +111 -0
  136. package/dist/lib/front_end/core/sdk/PaintProfiler.d.ts +43 -0
  137. package/dist/lib/front_end/core/sdk/PerformanceMetricsModel.d.ts +12 -0
  138. package/dist/lib/front_end/core/sdk/PreloadingModel.d.ts +146 -0
  139. package/dist/lib/front_end/core/sdk/RehydratingConnection.d.ts +57 -0
  140. package/dist/lib/front_end/core/sdk/RehydratingObject.d.ts +59 -0
  141. package/dist/lib/front_end/core/sdk/RemoteObject.d.ts +199 -0
  142. package/dist/lib/front_end/core/sdk/Resource.d.ts +34 -0
  143. package/dist/lib/front_end/core/sdk/ResourceTreeModel.d.ts +249 -0
  144. package/dist/lib/front_end/core/sdk/RuntimeModel.d.ts +158 -0
  145. package/dist/lib/front_end/core/sdk/SDKModel.d.ts +30 -0
  146. package/dist/lib/front_end/core/sdk/ScopeTreeCache.d.ts +21 -0
  147. package/dist/lib/front_end/core/sdk/ScreenCaptureModel.d.ts +69 -0
  148. package/dist/lib/front_end/core/sdk/Script.d.ts +125 -0
  149. package/dist/lib/front_end/core/sdk/SecurityOriginManager.d.ts +23 -0
  150. package/dist/lib/front_end/core/sdk/ServerSentEvents.d.ts +18 -0
  151. package/dist/lib/front_end/core/sdk/ServerSentEventsProtocol.d.ts +18 -0
  152. package/dist/lib/front_end/core/sdk/ServerTiming.d.ts +24 -0
  153. package/dist/lib/front_end/core/sdk/ServiceWorkerCacheModel.d.ts +79 -0
  154. package/dist/lib/front_end/core/sdk/ServiceWorkerManager.d.ts +130 -0
  155. package/dist/lib/front_end/core/sdk/SourceMap.d.ts +173 -0
  156. package/dist/lib/front_end/core/sdk/SourceMapCache.d.ts +11 -0
  157. package/dist/lib/front_end/core/sdk/SourceMapFunctionRanges.d.ts +26 -0
  158. package/dist/lib/front_end/core/sdk/SourceMapManager.d.ts +44 -0
  159. package/dist/lib/front_end/core/sdk/SourceMapScopeChainEntry.d.ts +20 -0
  160. package/dist/lib/front_end/core/sdk/SourceMapScopesInfo.d.ts +123 -0
  161. package/dist/lib/front_end/core/sdk/StorageBucketsModel.d.ts +56 -0
  162. package/dist/lib/front_end/core/sdk/StorageKeyManager.d.ts +38 -0
  163. package/dist/lib/front_end/core/sdk/Target.d.ts +71 -0
  164. package/dist/lib/front_end/core/sdk/TargetManager.d.ts +84 -0
  165. package/dist/lib/front_end/core/sdk/TraceObject.d.ts +37 -0
  166. package/dist/lib/front_end/core/sdk/WebAuthnModel.d.ts +29 -0
  167. package/dist/lib/front_end/core/sdk/WebMCPModel.d.ts +21 -0
  168. package/dist/lib/front_end/core/sdk/sdk.d.ts +90 -0
  169. package/dist/lib/front_end/entrypoints/formatter_worker/FormatterActions.d.ts +48 -0
  170. package/dist/lib/front_end/generated/InspectorBackendCommands.d.ts +14 -0
  171. package/dist/lib/front_end/generated/protocol.d.ts +21618 -0
  172. package/dist/lib/front_end/models/cpu_profile/CPUProfileDataModel.d.ts +104 -0
  173. package/dist/lib/front_end/models/cpu_profile/ProfileTreeModel.d.ts +29 -0
  174. package/dist/lib/front_end/models/cpu_profile/cpu_profile.d.ts +3 -0
  175. package/dist/lib/front_end/models/crux-manager/CrUXManager.d.ts +104 -0
  176. package/dist/lib/front_end/models/crux-manager/crux-manager.d.ts +1 -0
  177. package/dist/lib/front_end/models/emulation/DeviceModeModel.d.ts +135 -0
  178. package/dist/lib/front_end/models/emulation/EmulatedDevices.d.ts +680 -0
  179. package/dist/lib/front_end/models/emulation/emulation.d.ts +3 -0
  180. package/dist/lib/front_end/models/formatter/FormatterWorkerPool.d.ts +58 -0
  181. package/dist/lib/front_end/models/formatter/ScriptFormatter.d.ts +11 -0
  182. package/dist/lib/front_end/models/formatter/formatter.d.ts +3 -0
  183. package/dist/lib/front_end/models/geometry/GeometryImpl.d.ts +105 -0
  184. package/dist/lib/front_end/models/geometry/geometry.d.ts +1 -0
  185. package/dist/lib/front_end/models/text_utils/CodeMirrorUtils.d.ts +3 -0
  186. package/dist/lib/front_end/models/text_utils/ContentData.d.ts +74 -0
  187. package/dist/lib/front_end/models/text_utils/ContentProvider.d.ts +42 -0
  188. package/dist/lib/front_end/models/text_utils/StaticContentProvider.d.ts +13 -0
  189. package/dist/lib/front_end/models/text_utils/StreamingContentData.d.ts +49 -0
  190. package/dist/lib/front_end/models/text_utils/Text.d.ts +19 -0
  191. package/dist/lib/front_end/models/text_utils/TextCursor.d.ts +9 -0
  192. package/dist/lib/front_end/models/text_utils/TextRange.d.ts +80 -0
  193. package/dist/lib/front_end/models/text_utils/TextUtils.d.ts +97 -0
  194. package/dist/lib/front_end/models/text_utils/WasmDisassembly.d.ts +29 -0
  195. package/dist/lib/front_end/models/text_utils/text_utils.d.ts +11 -0
  196. package/dist/lib/front_end/models/trace/EntityMapper.d.ts +33 -0
  197. package/dist/lib/front_end/models/trace/EventsSerializer.d.ts +11 -0
  198. package/dist/lib/front_end/models/trace/LanternComputationData.d.ts +8 -0
  199. package/dist/lib/front_end/models/trace/ModelImpl.d.ts +103 -0
  200. package/dist/lib/front_end/models/trace/Name.d.ts +12 -0
  201. package/dist/lib/front_end/models/trace/Processor.d.ts +39 -0
  202. package/dist/lib/front_end/models/trace/Styles.d.ts +50 -0
  203. package/dist/lib/front_end/models/trace/extras/FilmStrip.d.ts +19 -0
  204. package/dist/lib/front_end/models/trace/extras/Initiators.d.ts +12 -0
  205. package/dist/lib/front_end/models/trace/extras/MainThreadActivity.d.ts +2 -0
  206. package/dist/lib/front_end/models/trace/extras/ScriptDuplication.d.ts +52 -0
  207. package/dist/lib/front_end/models/trace/extras/StackTraceForEvent.d.ts +12 -0
  208. package/dist/lib/front_end/models/trace/extras/ThirdParties.d.ts +22 -0
  209. package/dist/lib/front_end/models/trace/extras/TraceFilter.d.ts +21 -0
  210. package/dist/lib/front_end/models/trace/extras/TraceTree.d.ts +125 -0
  211. package/dist/lib/front_end/models/trace/extras/extras.d.ts +8 -0
  212. package/dist/lib/front_end/models/trace/handlers/AnimationFramesHandler.d.ts +12 -0
  213. package/dist/lib/front_end/models/trace/handlers/AnimationHandler.d.ts +8 -0
  214. package/dist/lib/front_end/models/trace/handlers/AsyncJSCallsHandler.d.ts +20 -0
  215. package/dist/lib/front_end/models/trace/handlers/AuctionWorkletsHandler.d.ts +8 -0
  216. package/dist/lib/front_end/models/trace/handlers/DOMStatsHandler.d.ts +8 -0
  217. package/dist/lib/front_end/models/trace/handlers/ExtensionTraceDataHandler.d.ts +106 -0
  218. package/dist/lib/front_end/models/trace/handlers/FlowsHandler.d.ts +7 -0
  219. package/dist/lib/front_end/models/trace/handlers/FramesHandler.d.ts +94 -0
  220. package/dist/lib/front_end/models/trace/handlers/GPUHandler.d.ts +10 -0
  221. package/dist/lib/front_end/models/trace/handlers/ImagePaintingHandler.d.ts +17 -0
  222. package/dist/lib/front_end/models/trace/handlers/InitiatorsHandler.d.ts +20 -0
  223. package/dist/lib/front_end/models/trace/handlers/InvalidationsHandler.d.ts +11 -0
  224. package/dist/lib/front_end/models/trace/handlers/LargestImagePaintHandler.d.ts +10 -0
  225. package/dist/lib/front_end/models/trace/handlers/LargestTextPaintHandler.d.ts +6 -0
  226. package/dist/lib/front_end/models/trace/handlers/LayerTreeHandler.d.ts +12 -0
  227. package/dist/lib/front_end/models/trace/handlers/LayoutShiftsHandler.d.ts +58 -0
  228. package/dist/lib/front_end/models/trace/handlers/MemoryHandler.d.ts +8 -0
  229. package/dist/lib/front_end/models/trace/handlers/MetaHandler.d.ts +82 -0
  230. package/dist/lib/front_end/models/trace/handlers/ModelHandlers.d.ts +30 -0
  231. package/dist/lib/front_end/models/trace/handlers/NetworkRequestsHandler.d.ts +56 -0
  232. package/dist/lib/front_end/models/trace/handlers/PageFramesHandler.d.ts +8 -0
  233. package/dist/lib/front_end/models/trace/handlers/PageLoadMetricsHandler.d.ts +86 -0
  234. package/dist/lib/front_end/models/trace/handlers/RendererHandler.d.ts +100 -0
  235. package/dist/lib/front_end/models/trace/handlers/SamplesHandler.d.ts +46 -0
  236. package/dist/lib/front_end/models/trace/handlers/ScreenshotsHandler.d.ts +12 -0
  237. package/dist/lib/front_end/models/trace/handlers/ScriptsHandler.d.ts +43 -0
  238. package/dist/lib/front_end/models/trace/handlers/SelectorStatsHandler.d.ts +27 -0
  239. package/dist/lib/front_end/models/trace/handlers/Threads.d.ts +34 -0
  240. package/dist/lib/front_end/models/trace/handlers/UserInteractionsHandler.d.ts +78 -0
  241. package/dist/lib/front_end/models/trace/handlers/UserTimingsHandler.d.ts +54 -0
  242. package/dist/lib/front_end/models/trace/handlers/WarningsHandler.d.ts +14 -0
  243. package/dist/lib/front_end/models/trace/handlers/WorkersHandler.d.ts +10 -0
  244. package/dist/lib/front_end/models/trace/handlers/handlers.d.ts +4 -0
  245. package/dist/lib/front_end/models/trace/handlers/helpers.d.ts +21 -0
  246. package/dist/lib/front_end/models/trace/handlers/types.d.ts +54 -0
  247. package/dist/lib/front_end/models/trace/helpers/Extensions.d.ts +6 -0
  248. package/dist/lib/front_end/models/trace/helpers/Network.d.ts +26 -0
  249. package/dist/lib/front_end/models/trace/helpers/SamplesIntegrator.d.ts +62 -0
  250. package/dist/lib/front_end/models/trace/helpers/SyntheticEvents.d.ts +13 -0
  251. package/dist/lib/front_end/models/trace/helpers/Timing.d.ts +59 -0
  252. package/dist/lib/front_end/models/trace/helpers/Trace.d.ts +148 -0
  253. package/dist/lib/front_end/models/trace/helpers/TreeHelpers.d.ts +109 -0
  254. package/dist/lib/front_end/models/trace/helpers/helpers.d.ts +7 -0
  255. package/dist/lib/front_end/models/trace/insights/CLSCulprits.d.ts +137 -0
  256. package/dist/lib/front_end/models/trace/insights/Cache.d.ts +71 -0
  257. package/dist/lib/front_end/models/trace/insights/CharacterSet.d.ts +49 -0
  258. package/dist/lib/front_end/models/trace/insights/Common.d.ts +77 -0
  259. package/dist/lib/front_end/models/trace/insights/DOMSize.d.ts +71 -0
  260. package/dist/lib/front_end/models/trace/insights/DocumentLatency.d.ts +66 -0
  261. package/dist/lib/front_end/models/trace/insights/DuplicatedJavaScript.d.ts +29 -0
  262. package/dist/lib/front_end/models/trace/insights/FontDisplay.d.ts +28 -0
  263. package/dist/lib/front_end/models/trace/insights/ForcedReflow.d.ts +56 -0
  264. package/dist/lib/front_end/models/trace/insights/INPBreakdown.d.ts +50 -0
  265. package/dist/lib/front_end/models/trace/insights/ImageDelivery.d.ts +95 -0
  266. package/dist/lib/front_end/models/trace/insights/LCPBreakdown.d.ts +85 -0
  267. package/dist/lib/front_end/models/trace/insights/LCPDiscovery.d.ts +64 -0
  268. package/dist/lib/front_end/models/trace/insights/LegacyJavaScript.d.ts +35 -0
  269. package/dist/lib/front_end/models/trace/insights/Models.d.ts +19 -0
  270. package/dist/lib/front_end/models/trace/insights/ModernHTTP.d.ts +53 -0
  271. package/dist/lib/front_end/models/trace/insights/NetworkDependencyTree.d.ts +135 -0
  272. package/dist/lib/front_end/models/trace/insights/RenderBlocking.d.ts +34 -0
  273. package/dist/lib/front_end/models/trace/insights/SlowCSSSelector.d.ts +56 -0
  274. package/dist/lib/front_end/models/trace/insights/Statistics.d.ts +18 -0
  275. package/dist/lib/front_end/models/trace/insights/ThirdParties.d.ts +33 -0
  276. package/dist/lib/front_end/models/trace/insights/Viewport.d.ts +24 -0
  277. package/dist/lib/front_end/models/trace/insights/insights.d.ts +6 -0
  278. package/dist/lib/front_end/models/trace/insights/types.d.ts +143 -0
  279. package/dist/lib/front_end/models/trace/lantern/core/LanternError.d.ts +3 -0
  280. package/dist/lib/front_end/models/trace/lantern/core/NetworkAnalyzer.d.ts +112 -0
  281. package/dist/lib/front_end/models/trace/lantern/core/core.d.ts +2 -0
  282. package/dist/lib/front_end/models/trace/lantern/graph/BaseNode.d.ts +98 -0
  283. package/dist/lib/front_end/models/trace/lantern/graph/CPUNode.d.ts +24 -0
  284. package/dist/lib/front_end/models/trace/lantern/graph/NetworkNode.d.ts +22 -0
  285. package/dist/lib/front_end/models/trace/lantern/graph/PageDependencyGraph.d.ts +43 -0
  286. package/dist/lib/front_end/models/trace/lantern/graph/graph.d.ts +4 -0
  287. package/dist/lib/front_end/models/trace/lantern/lantern.d.ts +6 -0
  288. package/dist/lib/front_end/models/trace/lantern/metrics/FirstContentfulPaint.d.ts +40 -0
  289. package/dist/lib/front_end/models/trace/lantern/metrics/Interactive.d.ts +12 -0
  290. package/dist/lib/front_end/models/trace/lantern/metrics/LargestContentfulPaint.d.ts +17 -0
  291. package/dist/lib/front_end/models/trace/lantern/metrics/MaxPotentialFID.d.ts +14 -0
  292. package/dist/lib/front_end/models/trace/lantern/metrics/Metric.d.ts +44 -0
  293. package/dist/lib/front_end/models/trace/lantern/metrics/SpeedIndex.d.ts +25 -0
  294. package/dist/lib/front_end/models/trace/lantern/metrics/TBTUtils.d.ts +31 -0
  295. package/dist/lib/front_end/models/trace/lantern/metrics/TotalBlockingTime.d.ts +16 -0
  296. package/dist/lib/front_end/models/trace/lantern/metrics/metrics.d.ts +8 -0
  297. package/dist/lib/front_end/models/trace/lantern/simulation/ConnectionPool.d.ts +26 -0
  298. package/dist/lib/front_end/models/trace/lantern/simulation/Constants.d.ts +31 -0
  299. package/dist/lib/front_end/models/trace/lantern/simulation/DNSCache.d.ts +22 -0
  300. package/dist/lib/front_end/models/trace/lantern/simulation/SimulationTimingMap.d.ts +62 -0
  301. package/dist/lib/front_end/models/trace/lantern/simulation/Simulator.d.ts +84 -0
  302. package/dist/lib/front_end/models/trace/lantern/simulation/TCPConnection.d.ts +47 -0
  303. package/dist/lib/front_end/models/trace/lantern/simulation/simulation.d.ts +6 -0
  304. package/dist/lib/front_end/models/trace/lantern/types/Lantern.d.ts +196 -0
  305. package/dist/lib/front_end/models/trace/lantern/types/types.d.ts +1 -0
  306. package/dist/lib/front_end/models/trace/trace.d.ts +14 -0
  307. package/dist/lib/front_end/models/trace/types/Configuration.d.ts +87 -0
  308. package/dist/lib/front_end/models/trace/types/Extensions.d.ts +77 -0
  309. package/dist/lib/front_end/models/trace/types/File.d.ts +197 -0
  310. package/dist/lib/front_end/models/trace/types/Overlays.d.ts +116 -0
  311. package/dist/lib/front_end/models/trace/types/Timing.d.ts +20 -0
  312. package/dist/lib/front_end/models/trace/types/TraceEvents.d.ts +2452 -0
  313. package/dist/lib/front_end/models/trace/types/types.d.ts +6 -0
  314. package/dist/lib/front_end/third_party/i18n/i18n-impl.d.ts +25 -0
  315. package/dist/lib/front_end/third_party/i18n/i18n.d.ts +3 -0
  316. package/dist/lib/front_end/third_party/i18n/localized-string-set.d.ts +49 -0
  317. package/dist/lib/front_end/third_party/intl-messageformat/intl-messageformat.d.ts +2 -0
  318. package/dist/lib/front_end/third_party/legacy-javascript/legacy-javascript.d.ts +2 -0
  319. package/dist/lib/front_end/third_party/source-map-scopes-codec/package/src/builder/builder.d.ts +67 -0
  320. package/dist/lib/front_end/third_party/source-map-scopes-codec/package/src/builder/safe_builder.d.ts +38 -0
  321. package/dist/lib/front_end/third_party/source-map-scopes-codec/package/src/codec.d.ts +48 -0
  322. package/dist/lib/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.d.ts +31 -0
  323. package/dist/lib/front_end/third_party/source-map-scopes-codec/package/src/encode/encode.d.ts +8 -0
  324. package/dist/lib/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.d.ts +6 -0
  325. package/dist/lib/front_end/third_party/source-map-scopes-codec/package/src/mod.d.ts +5 -0
  326. package/dist/lib/front_end/third_party/source-map-scopes-codec/package/src/scopes.d.ts +168 -0
  327. package/dist/lib/front_end/third_party/source-map-scopes-codec/package/src/util.d.ts +5 -0
  328. package/dist/lib/front_end/third_party/source-map-scopes-codec/package/src/vlq.d.ts +14 -0
  329. package/dist/lib/front_end/third_party/source-map-scopes-codec/source-map-scopes-codec.d.ts +1 -0
  330. package/dist/lib/front_end/third_party/third-party-web/third-party-web.d.ts +2 -0
  331. package/dist/src/init.d.ts +1 -0
  332. package/dist/src/timeline.d.ts +5 -0
  333. package/examples/inp.ts +34 -0
  334. package/examples/stats.ts +66 -0
  335. package/package.json +1 -1
  336. package/.claude/settings.local.json +0 -14
@@ -0,0 +1,599 @@
1
+ import * as Common from '../../core/common/common.js';
2
+ import type * as Platform from '../../core/platform/platform.js';
3
+ import type * as CodeMirror from '../../third_party/codemirror.next/codemirror.next.js';
4
+ import type { CSSMatchedStyles, CSSValueSource, CSSVariableValue } from './CSSMatchedStyles.js';
5
+ import { type CSSWideKeyword } from './CSSMetadata.js';
6
+ import type { CSSProperty } from './CSSProperty.js';
7
+ import { type BottomUpTreeMatching, type Match } from './CSSPropertyParser.js';
8
+ import type { CSSStyleDeclaration } from './CSSStyleDeclaration.js';
9
+ export declare class BaseVariableMatch implements Match {
10
+ readonly text: string;
11
+ readonly node: CodeMirror.SyntaxNode;
12
+ readonly name: string;
13
+ readonly fallback: CodeMirror.SyntaxNode[] | undefined;
14
+ readonly matching: BottomUpTreeMatching;
15
+ readonly computedTextCallback: (match: BaseVariableMatch, matching: BottomUpTreeMatching) => string | null;
16
+ constructor(text: string, node: CodeMirror.SyntaxNode, name: string, fallback: CodeMirror.SyntaxNode[] | undefined, matching: BottomUpTreeMatching, computedTextCallback: (match: BaseVariableMatch, matching: BottomUpTreeMatching) => string | null);
17
+ computedText(): string | null;
18
+ fallbackValue(): string | null;
19
+ }
20
+ declare const BaseVariableMatcher_base: {
21
+ new (): {
22
+ matchType: Platform.Constructor.ConstructorOrAbstract<BaseVariableMatch>;
23
+ accepts(_propertyName: string): boolean;
24
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): BaseVariableMatch;
25
+ };
26
+ };
27
+ export declare class BaseVariableMatcher extends BaseVariableMatcher_base {
28
+ #private;
29
+ constructor(computedTextCallback: (match: BaseVariableMatch, matching: BottomUpTreeMatching) => string | null);
30
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): BaseVariableMatch | null;
31
+ }
32
+ export declare class VariableMatch extends BaseVariableMatch {
33
+ readonly matchedStyles: CSSMatchedStyles;
34
+ readonly style: CSSStyleDeclaration;
35
+ constructor(text: string, node: CodeMirror.SyntaxNode, name: string, fallback: CodeMirror.SyntaxNode[] | undefined, matching: BottomUpTreeMatching, matchedStyles: CSSMatchedStyles, style: CSSStyleDeclaration);
36
+ resolveVariable(): CSSVariableValue | null;
37
+ }
38
+ declare const VariableMatcher_base: {
39
+ new (): {
40
+ matchType: Platform.Constructor.ConstructorOrAbstract<VariableMatch>;
41
+ accepts(_propertyName: string): boolean;
42
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): VariableMatch;
43
+ };
44
+ };
45
+ export declare class VariableMatcher extends VariableMatcher_base {
46
+ readonly matchedStyles: CSSMatchedStyles;
47
+ readonly style: CSSStyleDeclaration;
48
+ constructor(matchedStyles: CSSMatchedStyles, style: CSSStyleDeclaration);
49
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): VariableMatch | null;
50
+ }
51
+ export declare class AttributeMatch extends BaseVariableMatch {
52
+ readonly type: string | null;
53
+ readonly isCSSTokens: boolean;
54
+ readonly isValidType: boolean;
55
+ readonly rawValue: string | null;
56
+ readonly substitutionText: string | null;
57
+ readonly matchedStyles: CSSMatchedStyles;
58
+ readonly style: CSSStyleDeclaration;
59
+ constructor(text: string, node: CodeMirror.SyntaxNode, name: string, fallback: CodeMirror.SyntaxNode[] | undefined, matching: BottomUpTreeMatching, type: string | null, isCSSTokens: boolean, isValidType: boolean, rawValue: string | null, substitutionText: string | null, matchedStyles: CSSMatchedStyles, style: CSSStyleDeclaration, computedTextCallback: (match: AttributeMatch, matching: BottomUpTreeMatching) => string | null);
60
+ rawAttributeValue(): string | null;
61
+ cssType(): string;
62
+ resolveAttributeValue(): string | null;
63
+ }
64
+ /**
65
+ * These functions use an element in the frontend to evaluate CSS. The advantage
66
+ * of this is that it is synchronous and doesn't require a CDP method. The
67
+ * disadvantage is it lacks context that would allow substitutions such as
68
+ * `var()` and `calc()` to be resolved correctly, and if the user is doing
69
+ * remote debugging there is a possibility that the CSS behavior is different
70
+ * between the two browser versions. We use it for type checking after
71
+ * substitutions (but not for actual evaluation) and for applying units.
72
+ **/
73
+ export declare function localEvalCSS(value: string, type: string): string | null;
74
+ /**
75
+ * It is important to establish whether a type is valid, because if it is not,
76
+ * the current behavior of blink is to ignore the fallback and parse as a
77
+ * raw string, returning '' if the attribute is not set.
78
+ **/
79
+ export declare function isValidCSSType(type: string): boolean;
80
+ export declare function defaultValueForCSSType(type: string | null): string | null;
81
+ export declare const RAW_STRING_TYPE = "raw-string";
82
+ declare const AttributeMatcher_base: {
83
+ new (): {
84
+ matchType: Platform.Constructor.ConstructorOrAbstract<AttributeMatch>;
85
+ accepts(_propertyName: string): boolean;
86
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): AttributeMatch;
87
+ };
88
+ };
89
+ export declare class AttributeMatcher extends AttributeMatcher_base {
90
+ private readonly matchedStyles;
91
+ private readonly style;
92
+ private readonly computedTextCallback?;
93
+ constructor(matchedStyles: CSSMatchedStyles, style: CSSStyleDeclaration, computedTextCallback?: (match: AttributeMatch, matching: BottomUpTreeMatching) => string | null);
94
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): AttributeMatch | null;
95
+ }
96
+ export declare class BinOpMatch implements Match {
97
+ readonly text: string;
98
+ readonly node: CodeMirror.SyntaxNode;
99
+ constructor(text: string, node: CodeMirror.SyntaxNode);
100
+ }
101
+ declare const BinOpMatcher_base: {
102
+ new (): {
103
+ matchType: Platform.Constructor.ConstructorOrAbstract<BinOpMatch>;
104
+ accepts(_propertyName: string): boolean;
105
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): BinOpMatch;
106
+ };
107
+ };
108
+ export declare class BinOpMatcher extends BinOpMatcher_base {
109
+ accepts(): boolean;
110
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): BinOpMatch | null;
111
+ }
112
+ export declare class TextMatch implements Match {
113
+ readonly text: string;
114
+ readonly node: CodeMirror.SyntaxNode;
115
+ computedText?: () => string;
116
+ constructor(text: string, node: CodeMirror.SyntaxNode);
117
+ render(): Node[];
118
+ }
119
+ declare const TextMatcher_base: {
120
+ new (): {
121
+ matchType: Platform.Constructor.ConstructorOrAbstract<TextMatch>;
122
+ accepts(_propertyName: string): boolean;
123
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): TextMatch;
124
+ };
125
+ };
126
+ export declare class TextMatcher extends TextMatcher_base {
127
+ accepts(): boolean;
128
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): TextMatch | null;
129
+ }
130
+ export declare class AngleMatch implements Match {
131
+ readonly text: string;
132
+ readonly node: CodeMirror.SyntaxNode;
133
+ constructor(text: string, node: CodeMirror.SyntaxNode);
134
+ computedText(): string;
135
+ }
136
+ declare const AngleMatcher_base: {
137
+ new (): {
138
+ matchType: Platform.Constructor.ConstructorOrAbstract<AngleMatch>;
139
+ accepts(_propertyName: string): boolean;
140
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): AngleMatch;
141
+ };
142
+ };
143
+ export declare class AngleMatcher extends AngleMatcher_base {
144
+ accepts(propertyName: string): boolean;
145
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): AngleMatch | null;
146
+ }
147
+ export declare class ColorMixMatch implements Match {
148
+ readonly text: string;
149
+ readonly node: CodeMirror.SyntaxNode;
150
+ readonly space: CodeMirror.SyntaxNode[];
151
+ readonly color1: CodeMirror.SyntaxNode[];
152
+ readonly color2: CodeMirror.SyntaxNode[];
153
+ constructor(text: string, node: CodeMirror.SyntaxNode, space: CodeMirror.SyntaxNode[], color1: CodeMirror.SyntaxNode[], color2: CodeMirror.SyntaxNode[]);
154
+ }
155
+ declare const ColorMixMatcher_base: {
156
+ new (): {
157
+ matchType: Platform.Constructor.ConstructorOrAbstract<ColorMixMatch>;
158
+ accepts(_propertyName: string): boolean;
159
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): ColorMixMatch;
160
+ };
161
+ };
162
+ export declare class ColorMixMatcher extends ColorMixMatcher_base {
163
+ accepts(propertyName: string): boolean;
164
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): ColorMixMatch | null;
165
+ }
166
+ export declare class ContrastColorMatch implements Match {
167
+ readonly text: string;
168
+ readonly node: CodeMirror.SyntaxNode;
169
+ readonly color: CodeMirror.SyntaxNode[];
170
+ constructor(text: string, node: CodeMirror.SyntaxNode, color: CodeMirror.SyntaxNode[]);
171
+ }
172
+ declare const ContrastColorMatcher_base: {
173
+ new (): {
174
+ matchType: Platform.Constructor.ConstructorOrAbstract<ContrastColorMatch>;
175
+ accepts(_propertyName: string): boolean;
176
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): ContrastColorMatch;
177
+ };
178
+ };
179
+ export declare class ContrastColorMatcher extends ContrastColorMatcher_base {
180
+ accepts(propertyName: string): boolean;
181
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): ContrastColorMatch | null;
182
+ }
183
+ export declare class URLMatch implements Match {
184
+ readonly url: Platform.DevToolsPath.UrlString;
185
+ readonly text: string;
186
+ readonly node: CodeMirror.SyntaxNode;
187
+ constructor(url: Platform.DevToolsPath.UrlString, text: string, node: CodeMirror.SyntaxNode);
188
+ }
189
+ declare const URLMatcher_base: {
190
+ new (): {
191
+ matchType: Platform.Constructor.ConstructorOrAbstract<URLMatch>;
192
+ accepts(_propertyName: string): boolean;
193
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): URLMatch;
194
+ };
195
+ };
196
+ export declare class URLMatcher extends URLMatcher_base {
197
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): URLMatch | null;
198
+ }
199
+ export declare class LinearGradientMatch implements Match {
200
+ readonly text: string;
201
+ readonly node: CodeMirror.SyntaxNode;
202
+ constructor(text: string, node: CodeMirror.SyntaxNode);
203
+ }
204
+ declare const LinearGradientMatcher_base: {
205
+ new (): {
206
+ matchType: Platform.Constructor.ConstructorOrAbstract<LinearGradientMatch>;
207
+ accepts(_propertyName: string): boolean;
208
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): LinearGradientMatch;
209
+ };
210
+ };
211
+ export declare class LinearGradientMatcher extends LinearGradientMatcher_base {
212
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): Match | null;
213
+ accepts(propertyName: string): boolean;
214
+ }
215
+ interface RelativeColor {
216
+ colorSpace: Common.Color.Format;
217
+ baseColor: ColorMatch;
218
+ }
219
+ export declare class ColorMatch implements Match {
220
+ readonly text: string;
221
+ readonly node: CodeMirror.SyntaxNode;
222
+ private readonly currentColorCallback?;
223
+ readonly relativeColor?: RelativeColor;
224
+ computedText: (() => string | null) | undefined;
225
+ constructor(text: string, node: CodeMirror.SyntaxNode, currentColorCallback?: () => string | null, relativeColor?: RelativeColor);
226
+ }
227
+ declare const ColorMatcher_base: {
228
+ new (): {
229
+ matchType: Platform.Constructor.ConstructorOrAbstract<ColorMatch>;
230
+ accepts(_propertyName: string): boolean;
231
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): ColorMatch;
232
+ };
233
+ };
234
+ export declare class ColorMatcher extends ColorMatcher_base {
235
+ private readonly currentColorCallback?;
236
+ constructor(currentColorCallback?: () => string | null);
237
+ accepts(propertyName: string): boolean;
238
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): ColorMatch | null;
239
+ }
240
+ export declare class RelativeColorChannelMatch implements Match {
241
+ readonly text: Common.Color.ColorChannel;
242
+ readonly node: CodeMirror.SyntaxNode;
243
+ constructor(text: Common.Color.ColorChannel, node: CodeMirror.SyntaxNode);
244
+ getColorChannelValue(relativeColor: RelativeColor): number | null;
245
+ computedText(): string;
246
+ }
247
+ declare const RelativeColorChannelMatcher_base: {
248
+ new (): {
249
+ matchType: Platform.Constructor.ConstructorOrAbstract<RelativeColorChannelMatch>;
250
+ accepts(_propertyName: string): boolean;
251
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): RelativeColorChannelMatch;
252
+ };
253
+ };
254
+ export declare class RelativeColorChannelMatcher extends RelativeColorChannelMatcher_base {
255
+ accepts(propertyName: string): boolean;
256
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): RelativeColorChannelMatch | null;
257
+ }
258
+ export declare class LightDarkColorMatch implements Match {
259
+ readonly text: string;
260
+ readonly node: CodeMirror.SyntaxNode;
261
+ readonly light: CodeMirror.SyntaxNode[];
262
+ readonly dark: CodeMirror.SyntaxNode[];
263
+ readonly style: CSSStyleDeclaration;
264
+ constructor(text: string, node: CodeMirror.SyntaxNode, light: CodeMirror.SyntaxNode[], dark: CodeMirror.SyntaxNode[], style: CSSStyleDeclaration);
265
+ }
266
+ declare const LightDarkColorMatcher_base: {
267
+ new (): {
268
+ matchType: Platform.Constructor.ConstructorOrAbstract<LightDarkColorMatch>;
269
+ accepts(_propertyName: string): boolean;
270
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): LightDarkColorMatch;
271
+ };
272
+ };
273
+ export declare class LightDarkColorMatcher extends LightDarkColorMatcher_base {
274
+ readonly style: CSSStyleDeclaration;
275
+ constructor(style: CSSStyleDeclaration);
276
+ accepts(propertyName: string): boolean;
277
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): LightDarkColorMatch | null;
278
+ }
279
+ export declare class AutoBaseMatch implements Match {
280
+ readonly text: string;
281
+ readonly node: CodeMirror.SyntaxNode;
282
+ readonly auto: CodeMirror.SyntaxNode[];
283
+ readonly base: CodeMirror.SyntaxNode[];
284
+ constructor(text: string, node: CodeMirror.SyntaxNode, auto: CodeMirror.SyntaxNode[], base: CodeMirror.SyntaxNode[]);
285
+ }
286
+ declare const AutoBaseMatcher_base: {
287
+ new (): {
288
+ matchType: Platform.Constructor.ConstructorOrAbstract<AutoBaseMatch>;
289
+ accepts(_propertyName: string): boolean;
290
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): AutoBaseMatch;
291
+ };
292
+ };
293
+ export declare class AutoBaseMatcher extends AutoBaseMatcher_base {
294
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): AutoBaseMatch | null;
295
+ }
296
+ export declare const enum LinkableNameProperties {
297
+ ANIMATION = "animation",
298
+ ANIMATION_NAME = "animation-name",
299
+ FONT_PALETTE = "font-palette",
300
+ POSITION_TRY_FALLBACKS = "position-try-fallbacks",
301
+ POSITION_TRY = "position-try"
302
+ }
303
+ declare const enum AnimationLonghandPart {
304
+ DIRECTION = "direction",
305
+ FILL_MODE = "fill-mode",
306
+ PLAY_STATE = "play-state",
307
+ ITERATION_COUNT = "iteration-count",
308
+ EASING_FUNCTION = "easing-function"
309
+ }
310
+ export declare class LinkableNameMatch implements Match {
311
+ readonly text: string;
312
+ readonly node: CodeMirror.SyntaxNode;
313
+ readonly propertyName: LinkableNameProperties;
314
+ constructor(text: string, node: CodeMirror.SyntaxNode, propertyName: LinkableNameProperties);
315
+ }
316
+ declare const LinkableNameMatcher_base: {
317
+ new (): {
318
+ matchType: Platform.Constructor.ConstructorOrAbstract<LinkableNameMatch>;
319
+ accepts(_propertyName: string): boolean;
320
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): LinkableNameMatch;
321
+ };
322
+ };
323
+ export declare class LinkableNameMatcher extends LinkableNameMatcher_base {
324
+ private static isLinkableNameProperty;
325
+ static readonly identifierAnimationLonghandMap: Map<string, AnimationLonghandPart>;
326
+ private matchAnimationNameInShorthand;
327
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): LinkableNameMatch | null;
328
+ }
329
+ export declare class BezierMatch implements Match {
330
+ readonly text: string;
331
+ readonly node: CodeMirror.SyntaxNode;
332
+ constructor(text: string, node: CodeMirror.SyntaxNode);
333
+ }
334
+ declare const BezierMatcher_base: {
335
+ new (): {
336
+ matchType: Platform.Constructor.ConstructorOrAbstract<BezierMatch>;
337
+ accepts(_propertyName: string): boolean;
338
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): BezierMatch;
339
+ };
340
+ };
341
+ export declare class BezierMatcher extends BezierMatcher_base {
342
+ accepts(propertyName: string): boolean;
343
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): Match | null;
344
+ }
345
+ export declare class StringMatch implements Match {
346
+ readonly text: string;
347
+ readonly node: CodeMirror.SyntaxNode;
348
+ constructor(text: string, node: CodeMirror.SyntaxNode);
349
+ }
350
+ declare const StringMatcher_base: {
351
+ new (): {
352
+ matchType: Platform.Constructor.ConstructorOrAbstract<StringMatch>;
353
+ accepts(_propertyName: string): boolean;
354
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): StringMatch;
355
+ };
356
+ };
357
+ export declare class StringMatcher extends StringMatcher_base {
358
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): Match | null;
359
+ }
360
+ export declare const enum ShadowType {
361
+ BOX_SHADOW = "boxShadow",
362
+ TEXT_SHADOW = "textShadow"
363
+ }
364
+ export declare class ShadowMatch implements Match {
365
+ readonly text: string;
366
+ readonly node: CodeMirror.SyntaxNode;
367
+ readonly shadowType: ShadowType;
368
+ constructor(text: string, node: CodeMirror.SyntaxNode, shadowType: ShadowType);
369
+ }
370
+ declare const ShadowMatcher_base: {
371
+ new (): {
372
+ matchType: Platform.Constructor.ConstructorOrAbstract<ShadowMatch>;
373
+ accepts(_propertyName: string): boolean;
374
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): ShadowMatch;
375
+ };
376
+ };
377
+ export declare class ShadowMatcher extends ShadowMatcher_base {
378
+ accepts(propertyName: string): boolean;
379
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): ShadowMatch | null;
380
+ }
381
+ export declare class FontMatch implements Match {
382
+ readonly text: string;
383
+ readonly node: CodeMirror.SyntaxNode;
384
+ constructor(text: string, node: CodeMirror.SyntaxNode);
385
+ }
386
+ declare const FontMatcher_base: {
387
+ new (): {
388
+ matchType: Platform.Constructor.ConstructorOrAbstract<FontMatch>;
389
+ accepts(_propertyName: string): boolean;
390
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): FontMatch;
391
+ };
392
+ };
393
+ export declare class FontMatcher extends FontMatcher_base {
394
+ accepts(propertyName: string): boolean;
395
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): Match | null;
396
+ }
397
+ export declare class LengthMatch implements Match {
398
+ readonly text: string;
399
+ readonly node: CodeMirror.SyntaxNode;
400
+ readonly unit: string;
401
+ constructor(text: string, node: CodeMirror.SyntaxNode, unit: string);
402
+ }
403
+ declare const LengthMatcher_base: {
404
+ new (): {
405
+ matchType: Platform.Constructor.ConstructorOrAbstract<LengthMatch>;
406
+ accepts(_propertyName: string): boolean;
407
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): LengthMatch;
408
+ };
409
+ };
410
+ export declare class LengthMatcher extends LengthMatcher_base {
411
+ static readonly LENGTH_UNITS: Set<string>;
412
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): LengthMatch | null;
413
+ }
414
+ export declare const enum SelectFunction {
415
+ MIN = "min",
416
+ MAX = "max",
417
+ CLAMP = "clamp"
418
+ }
419
+ export declare const enum ArithmeticFunction {
420
+ CALC = "calc",
421
+ SIBLING_COUNT = "sibling-count",
422
+ SIBLING_INDEX = "sibling-index",
423
+ ROUND = "round",
424
+ MOD = "mod",
425
+ REM = "rem"
426
+ }
427
+ type MathFunction = SelectFunction | ArithmeticFunction;
428
+ export declare class BaseFunctionMatch<T extends string> implements Match {
429
+ readonly text: string;
430
+ readonly node: CodeMirror.SyntaxNode;
431
+ readonly func: T;
432
+ readonly args: CodeMirror.SyntaxNode[][];
433
+ constructor(text: string, node: CodeMirror.SyntaxNode, func: T, args: CodeMirror.SyntaxNode[][]);
434
+ }
435
+ export declare class MathFunctionMatch extends BaseFunctionMatch<MathFunction> {
436
+ isArithmeticFunctionCall(): boolean;
437
+ }
438
+ declare const MathFunctionMatcher_base: {
439
+ new (): {
440
+ matchType: Platform.Constructor.ConstructorOrAbstract<MathFunctionMatch>;
441
+ accepts(_propertyName: string): boolean;
442
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): MathFunctionMatch;
443
+ };
444
+ };
445
+ export declare class MathFunctionMatcher extends MathFunctionMatcher_base {
446
+ private static getFunctionType;
447
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): MathFunctionMatch | null;
448
+ }
449
+ export declare class CustomFunctionMatch extends BaseFunctionMatch<string> {
450
+ }
451
+ declare const CustomFunctionMatcher_base: {
452
+ new (): {
453
+ matchType: Platform.Constructor.ConstructorOrAbstract<CustomFunctionMatch>;
454
+ accepts(_propertyName: string): boolean;
455
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): CustomFunctionMatch;
456
+ };
457
+ };
458
+ export declare class CustomFunctionMatcher extends CustomFunctionMatcher_base {
459
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): CustomFunctionMatch | null;
460
+ }
461
+ export declare const enum LayoutType {
462
+ FLEX = "flex",
463
+ GRID = "grid",
464
+ GRID_LANES = "grid-lanes"
465
+ }
466
+ export declare class FlexGridGridLanesMatch implements Match {
467
+ readonly text: string;
468
+ readonly node: CodeMirror.SyntaxNode;
469
+ readonly layoutType: LayoutType;
470
+ constructor(text: string, node: CodeMirror.SyntaxNode, layoutType: LayoutType);
471
+ }
472
+ declare const FlexGridGridLanesMatcher_base: {
473
+ new (): {
474
+ matchType: Platform.Constructor.ConstructorOrAbstract<FlexGridGridLanesMatch>;
475
+ accepts(_propertyName: string): boolean;
476
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): FlexGridGridLanesMatch;
477
+ };
478
+ };
479
+ export declare class FlexGridGridLanesMatcher extends FlexGridGridLanesMatcher_base {
480
+ static readonly FLEX: string[];
481
+ static readonly GRID: string[];
482
+ static readonly GRID_LANES: string[];
483
+ accepts(propertyName: string): boolean;
484
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): FlexGridGridLanesMatch | null;
485
+ }
486
+ export declare class GridTemplateMatch implements Match {
487
+ readonly text: string;
488
+ readonly node: CodeMirror.SyntaxNode;
489
+ readonly lines: CodeMirror.SyntaxNode[][];
490
+ constructor(text: string, node: CodeMirror.SyntaxNode, lines: CodeMirror.SyntaxNode[][]);
491
+ }
492
+ declare const GridTemplateMatcher_base: {
493
+ new (): {
494
+ matchType: Platform.Constructor.ConstructorOrAbstract<GridTemplateMatch>;
495
+ accepts(_propertyName: string): boolean;
496
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): GridTemplateMatch;
497
+ };
498
+ };
499
+ export declare class GridTemplateMatcher extends GridTemplateMatcher_base {
500
+ accepts(propertyName: string): boolean;
501
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): GridTemplateMatch | null;
502
+ }
503
+ export declare class AnchorFunctionMatch implements Match {
504
+ readonly text: string;
505
+ readonly node: CodeMirror.SyntaxNode;
506
+ readonly functionName: string | null;
507
+ constructor(text: string, node: CodeMirror.SyntaxNode, functionName: string | null);
508
+ }
509
+ declare const AnchorFunctionMatcher_base: {
510
+ new (): {
511
+ matchType: Platform.Constructor.ConstructorOrAbstract<AnchorFunctionMatch>;
512
+ accepts(_propertyName: string): boolean;
513
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): AnchorFunctionMatch;
514
+ };
515
+ };
516
+ export declare class AnchorFunctionMatcher extends AnchorFunctionMatcher_base {
517
+ anchorFunction(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): string | null;
518
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): AnchorFunctionMatch | null;
519
+ }
520
+ /** For linking `position-anchor: --anchor-name`. **/
521
+ export declare class PositionAnchorMatch implements Match {
522
+ readonly text: string;
523
+ readonly matching: BottomUpTreeMatching;
524
+ readonly node: CodeMirror.SyntaxNode;
525
+ constructor(text: string, matching: BottomUpTreeMatching, node: CodeMirror.SyntaxNode);
526
+ }
527
+ declare const PositionAnchorMatcher_base: {
528
+ new (): {
529
+ matchType: Platform.Constructor.ConstructorOrAbstract<PositionAnchorMatch>;
530
+ accepts(_propertyName: string): boolean;
531
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): PositionAnchorMatch;
532
+ };
533
+ };
534
+ export declare class PositionAnchorMatcher extends PositionAnchorMatcher_base {
535
+ accepts(propertyName: string): boolean;
536
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): PositionAnchorMatch | null;
537
+ }
538
+ export declare class CSSWideKeywordMatch implements Match {
539
+ readonly text: CSSWideKeyword;
540
+ readonly node: CodeMirror.SyntaxNode;
541
+ readonly property: CSSProperty;
542
+ readonly matchedStyles: CSSMatchedStyles;
543
+ constructor(text: CSSWideKeyword, node: CodeMirror.SyntaxNode, property: CSSProperty, matchedStyles: CSSMatchedStyles);
544
+ resolveProperty(): CSSValueSource | null;
545
+ computedText?(): string | null;
546
+ }
547
+ declare const CSSWideKeywordMatcher_base: {
548
+ new (): {
549
+ matchType: Platform.Constructor.ConstructorOrAbstract<CSSWideKeywordMatch>;
550
+ accepts(_propertyName: string): boolean;
551
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): CSSWideKeywordMatch;
552
+ };
553
+ };
554
+ export declare class CSSWideKeywordMatcher extends CSSWideKeywordMatcher_base {
555
+ readonly property: CSSProperty;
556
+ readonly matchedStyles: CSSMatchedStyles;
557
+ constructor(property: CSSProperty, matchedStyles: CSSMatchedStyles);
558
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): CSSWideKeywordMatch | null;
559
+ }
560
+ export declare class PositionTryMatch implements Match {
561
+ readonly text: string;
562
+ readonly node: CodeMirror.SyntaxNode;
563
+ readonly preamble: CodeMirror.SyntaxNode[];
564
+ readonly fallbacks: CodeMirror.SyntaxNode[][];
565
+ constructor(text: string, node: CodeMirror.SyntaxNode, preamble: CodeMirror.SyntaxNode[], fallbacks: CodeMirror.SyntaxNode[][]);
566
+ }
567
+ declare const PositionTryMatcher_base: {
568
+ new (): {
569
+ matchType: Platform.Constructor.ConstructorOrAbstract<PositionTryMatch>;
570
+ accepts(_propertyName: string): boolean;
571
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): PositionTryMatch;
572
+ };
573
+ };
574
+ export declare class PositionTryMatcher extends PositionTryMatcher_base {
575
+ accepts(propertyName: string): boolean;
576
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): PositionTryMatch | null;
577
+ }
578
+ export declare class EnvFunctionMatch implements Match {
579
+ readonly text: string;
580
+ readonly node: CodeMirror.SyntaxNode;
581
+ readonly varName: string;
582
+ readonly value: string | null;
583
+ readonly varNameIsValid: boolean;
584
+ constructor(text: string, node: CodeMirror.SyntaxNode, varName: string, value: string | null, varNameIsValid: boolean);
585
+ computedText(): string | null;
586
+ }
587
+ declare const EnvFunctionMatcher_base: {
588
+ new (): {
589
+ matchType: Platform.Constructor.ConstructorOrAbstract<EnvFunctionMatch>;
590
+ accepts(_propertyName: string): boolean;
591
+ matches(_node: CodeMirror.SyntaxNode, _matching: BottomUpTreeMatching): EnvFunctionMatch;
592
+ };
593
+ };
594
+ export declare class EnvFunctionMatcher extends EnvFunctionMatcher_base {
595
+ readonly matchedStyles: CSSMatchedStyles;
596
+ constructor(matchedStyles: CSSMatchedStyles);
597
+ matches(node: CodeMirror.SyntaxNode, matching: BottomUpTreeMatching): EnvFunctionMatch | null;
598
+ }
599
+ export {};
@@ -0,0 +1,21 @@
1
+ import type * as Protocol from '../../generated/protocol.js';
2
+ import type * as TextUtils from '../../models/text_utils/text_utils.js';
3
+ import { CSSLocation, type CSSModel, type Edit } from './CSSModel.js';
4
+ import type { CSSStyleSheetHeader } from './CSSStyleSheetHeader.js';
5
+ type CSSQueryPayload = Protocol.CSS.CSSMedia | Protocol.CSS.CSSContainerQuery | Protocol.CSS.CSSSupports | Protocol.CSS.CSSScope;
6
+ export declare abstract class CSSQuery {
7
+ text: string;
8
+ range?: TextUtils.TextRange.TextRange | null;
9
+ styleSheetId?: Protocol.DOM.StyleSheetId;
10
+ protected cssModel: CSSModel;
11
+ constructor(cssModel: CSSModel);
12
+ protected abstract reinitialize(payload: CSSQueryPayload): void;
13
+ abstract active(): boolean;
14
+ rebase(edit: Edit): void;
15
+ equal(other: CSSQuery): boolean;
16
+ lineNumberInSource(): number | undefined;
17
+ columnNumberInSource(): number | undefined;
18
+ header(): CSSStyleSheetHeader | null;
19
+ rawLocation(): CSSLocation | null;
20
+ }
21
+ export {};