@fkn/lib 0.9.2 → 0.9.4

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 (66) hide show
  1. package/account.cjs +1 -1
  2. package/account.js +2 -2
  3. package/{api-CAZo3BT0.js → api-Bhz3iB9m.js} +15 -15
  4. package/{api-BwrS6P0x.cjs → api-C75xqLFy.cjs} +1 -1
  5. package/cloud/dgram.cjs +1 -1
  6. package/cloud/dgram.js +1 -1
  7. package/cloud/fs.cjs +1 -1
  8. package/cloud/fs.js +2 -2
  9. package/cloud/net.cjs +1 -1
  10. package/cloud/net.js +1 -1
  11. package/{cloud-DArHoBaw.js → cloud-BeHgCa_z.js} +20 -18
  12. package/{cloud-CzMjj2Ne.d.ts → cloud-CAOIpDIH.d.ts} +1 -1
  13. package/{cloud-BcpPsNs3.cjs → cloud-Cd6TzZXd.cjs} +1 -1
  14. package/cloud.cjs +1 -1
  15. package/cloud.d.ts +1 -1
  16. package/cloud.js +4 -4
  17. package/desktop.cjs +1 -1
  18. package/desktop.js +1 -1
  19. package/{dgram-pCNllfov.cjs → dgram-C2LmoO0A.cjs} +1 -1
  20. package/{dgram-C1yYxLEI.js → dgram-D4JF_XW7.js} +2 -2
  21. package/dgram.cjs +1 -1
  22. package/dgram.js +1 -1
  23. package/dns.cjs +1 -1
  24. package/dns.js +2 -2
  25. package/extension-C46Rp-qr.js +73 -0
  26. package/extension-CkPvwol3.cjs +1 -0
  27. package/extension-D7SSKewV.d.ts +16 -0
  28. package/extension.cjs +1 -1
  29. package/extension.d.ts +3 -3
  30. package/extension.js +3 -3
  31. package/fs/promises.cjs +1 -1
  32. package/fs/promises.js +1 -1
  33. package/{fs-BrBsBqRz.cjs → fs-BXcz3BjJ.cjs} +1 -1
  34. package/{fs-_59wCBU2.js → fs-Bghx-1Hy.js} +4 -4
  35. package/fs.cjs +1 -1
  36. package/fs.js +1 -1
  37. package/http.cjs +1 -1
  38. package/http.js +2 -2
  39. package/{index-BJztAQIP.d.ts → index-pr5vLVVT.d.ts} +499 -406
  40. package/index.cjs +1 -1
  41. package/index.d.ts +4 -4
  42. package/index.js +28 -28
  43. package/{net-VAkfxAvn.js → net-BgQYnATG.js} +2 -2
  44. package/{net-BOyLJ3mh.cjs → net-zOx2OVGc.cjs} +1 -1
  45. package/net.cjs +1 -1
  46. package/net.js +1 -1
  47. package/{opfs-7_GmzQ93.js → opfs-BibrNGF0.js} +1 -1
  48. package/{opfs-uClkgnb5.cjs → opfs-CXMESVLc.cjs} +1 -1
  49. package/opfs.cjs +1 -1
  50. package/opfs.js +2 -2
  51. package/package.json +1 -1
  52. package/packages.cjs +1 -1
  53. package/packages.js +2 -2
  54. package/proxy-BEz2K6e4.cjs +53 -0
  55. package/{proxy-B3rliZN8.js → proxy-Bhk4X3xo.js} +505 -603
  56. package/rolldown-runtime-BIInC43l.cjs +1 -0
  57. package/{rolldown-runtime-DF993M8W.js → rolldown-runtime-Dy4uBu1J.js} +2 -2
  58. package/{storage-InqJHrkf.js → storage-D01O3zky.js} +2 -2
  59. package/{storage-C1BT8jwJ.cjs → storage-a3OhXFv2.cjs} +1 -1
  60. package/background-DMESyLZ6.cjs +0 -1
  61. package/background-DxYR_JMs.js +0 -1028
  62. package/extension-3pxUYwrA.d.ts +0 -16
  63. package/extension-CjJNj5Yl.cjs +0 -1
  64. package/extension-Qs02HPzR.js +0 -67
  65. package/proxy-g2yknq7C.cjs +0 -53
  66. package/rolldown-runtime-Doa5O59j.cjs +0 -1
@@ -88,330 +88,524 @@ declare const setRequestHeaderRule: (rule: RequestHeaderRule) => Promise<{
88
88
  }>;
89
89
  declare const removeRequestHeaderRule: (ruleId: number) => Promise<void>;
90
90
  //#endregion
91
- //#region node_modules/@mfkn/web-extension/lib/content-script/resolvers/locators/utils/extract.d.ts
92
- type ExtractType<M> = M extends {
93
- type: infer T extends string;
94
- } ? T : never;
95
- type ExtractResolverArgs<M> = M extends {
96
- resolve: (context: any, ...args: infer A) => Element[];
97
- } ? A : never;
98
- type ExtractOperationArgs<M> = M extends {
99
- resolve: (context: any, ...args: infer A) => any;
100
- } ? A : never;
101
- type ExtractResolverReturn<M> = M extends {
102
- resolve: (context: any, ...args: any[]) => infer R;
103
- } ? R : never;
104
- declare namespace locator_d_exports {
105
- export { render$7 as render, resolve$17 as resolve, type$18 as type };
106
- }
107
- declare const type$18: 'locator';
108
- declare const resolve$17: (context: LocatorContext, selector: string) => Element[];
109
- declare const render$7: SelectorRenderer;
110
- declare namespace get_by_role_d_exports {
111
- export { render$6 as render, resolve$16 as resolve, type$17 as type };
112
- }
113
- declare const type$17: 'getByRole';
114
- declare const resolve$16: (context: LocatorContext, role: string) => Element[];
115
- declare const render$6: SelectorRenderer;
116
- declare namespace get_by_text_d_exports {
117
- export { render$5 as render, resolve$15 as resolve, type$16 as type };
118
- }
119
- declare const type$16: 'getByText';
120
- declare const resolve$15: (context: LocatorContext, text: string) => Element[];
121
- declare const render$5: SelectorRenderer;
122
- declare namespace get_by_test_id_d_exports {
123
- export { render$4 as render, resolve$14 as resolve, type$15 as type };
124
- }
125
- declare const type$15: 'getByTestId';
126
- declare const resolve$14: (context: LocatorContext, testId: string) => Element[];
127
- declare const render$4: SelectorRenderer;
128
- declare namespace first_d_exports {
129
- export { render$3 as render, resolve$13 as resolve, type$14 as type };
130
- }
131
- declare const type$14: 'first';
132
- declare const resolve$13: (context: LocatorContext) => Element[];
133
- declare const render$3: SelectorRenderer;
134
- declare namespace nth_d_exports {
135
- export { render$2 as render, resolve$12 as resolve, type$13 as type };
136
- }
137
- declare const type$13: 'nth';
138
- declare const resolve$12: (context: LocatorContext, index: number) => Element[];
139
- declare const render$2: SelectorRenderer;
140
- declare namespace click_d_exports {
141
- export { permission$9 as permission, resolve$11 as resolve, type$12 as type };
142
- }
143
- declare const type$12: 'click';
144
- declare const permission$9: {
145
- readonly scope: 'act.click';
146
- readonly category: 'act';
147
- readonly severity: 3;
148
- readonly title: 'Click on the page';
149
- readonly description: 'Lets the app press buttons or links for you.';
91
+ //#region node_modules/@mfkn/frame-locator/lib/types.d.ts
92
+ type ChainKind = 'element' | 'frame';
93
+ type SelectorPart = {
94
+ kind: ChainKind;
95
+ name: string;
96
+ args: unknown[];
150
97
  };
151
- declare const resolve$11: (context: LocatorContext, options?: OperationTimeoutOptions & {
152
- position?: {
153
- x?: number;
154
- y?: number;
155
- };
156
- }) => void;
157
- declare namespace fill_d_exports {
158
- export { permission$8 as permission, resolve$10 as resolve, type$11 as type };
159
- }
160
- declare const type$11: 'fill';
161
- declare const permission$8: {
162
- readonly scope: 'act.type';
163
- readonly category: 'act';
164
- readonly severity: 1;
165
- readonly title: 'Type into a text field';
166
- readonly description: 'Lets the app fill in form fields on your behalf.';
98
+ type LocatorContext = {
99
+ document: Document;
100
+ elements: Element[];
167
101
  };
168
- declare const resolve$10: (context: LocatorContext, value: string, _options?: OperationTimeoutOptions) => void;
169
- declare namespace hover_d_exports {
170
- export { permission$7 as permission, resolve$9 as resolve, type$10 as type };
171
- }
172
- declare const type$10: 'hover';
173
- declare const permission$7: {
174
- readonly scope: 'act.hover';
175
- readonly category: 'act';
176
- readonly severity: 1;
177
- readonly title: 'Hover over the page';
178
- readonly description: 'Lets the app point at things to reveal menus or tooltips.';
102
+ type SelectorRender = {
103
+ fragment: string;
104
+ separator?: 'descend' | 'down' | 'up';
105
+ };
106
+ type SelectorModule = {
107
+ resolve: (context: LocatorContext, ...args: any[]) => Element[];
108
+ to: ChainKind;
109
+ barrier?: 'down' | 'up';
110
+ css?: boolean;
111
+ render?: (...args: any[]) => SelectorRender;
112
+ };
113
+ type OperationModule = {
114
+ resolve: (context: LocatorContext, ...args: any[]) => unknown;
115
+ };
116
+ type KindModules = {
117
+ selectors: Record<string, SelectorModule>;
118
+ operations: Record<string, OperationModule>;
119
+ };
120
+ type Modules = {
121
+ element: KindModules;
122
+ frame: KindModules;
123
+ };
124
+ type OperationOptions = {
125
+ timeout?: number;
126
+ };
127
+ type OperationRequest = {
128
+ parts: SelectorPart[];
129
+ operation: string;
130
+ args: unknown[];
131
+ phase: 'execute' | 'ensure';
179
132
  };
180
- declare const resolve$9: (context: LocatorContext, options?: OperationTimeoutOptions & {
133
+ type GateTools = {
134
+ highlight: (on: boolean) => Promise<void>;
135
+ };
136
+ type Gate = (request: OperationRequest, tools: GateTools) => void | Promise<void>;
137
+ type Executor = {
138
+ execute: (parts: SelectorPart[], operation: string, args: unknown[]) => Promise<unknown>;
139
+ highlight: (parts: SelectorPart[], on: boolean) => Promise<void>;
140
+ stale?: Promise<void>;
141
+ };
142
+ //#endregion
143
+ //#region node_modules/@mfkn/frame-locator/lib/errors.d.ts
144
+ declare const LOCATOR_ERROR = "LocatorError";
145
+ declare const LOCATOR_UNSUPPORTED = "LocatorUnsupportedError";
146
+ declare const LOCATOR_DENIED = "LocatorDeniedError";
147
+ declare const isLocatorUnsupported: (error: unknown) => boolean;
148
+ declare const isLocatorDenied: (error: unknown) => boolean;
149
+ declare const isTerminalError: (error: unknown) => boolean;
150
+ //#endregion
151
+ //#region node_modules/@mfkn/frame-locator/lib/add-style-tag.d.ts
152
+ type AddStyleTagOptions$1 = OperationOptions & {
153
+ content: string;
154
+ noSanitize?: boolean;
155
+ };
156
+ //#endregion
157
+ //#region node_modules/@mfkn/frame-locator/lib/operations.d.ts
158
+ type PositionOptions$1 = OperationOptions & {
181
159
  position?: {
182
160
  x?: number;
183
161
  y?: number;
184
162
  };
185
- }) => void;
186
- declare namespace text_content_d_exports {
187
- export { permission$6 as permission, resolve$8 as resolve, type$9 as type };
188
- }
189
- declare const type$9: 'textContent';
190
- declare const permission$6: {
191
- readonly scope: 'read.text';
192
- readonly category: 'read';
193
- readonly severity: 1;
194
- readonly title: 'Read text from the page';
195
- readonly description: 'Lets the app see the text shown on this page.';
196
163
  };
197
- declare const resolve$8: (context: LocatorContext, _options?: OperationTimeoutOptions) => string;
198
- declare namespace is_visible_d_exports {
199
- export { permission$5 as permission, resolve$7 as resolve, type$8 as type };
200
- }
201
- declare const type$8: 'isVisible';
202
- declare const permission$5: {
203
- readonly scope: 'read.visible';
204
- readonly category: 'read';
205
- readonly severity: 0;
206
- readonly title: 'See what’s visible on the page';
207
- readonly description: 'Lets the app check which elements are currently on screen.';
164
+ //#endregion
165
+ //#region node_modules/@mfkn/frame-locator/lib/modules.d.ts
166
+ declare const defaultModules: {
167
+ readonly element: {
168
+ readonly selectors: {
169
+ readonly locator: {
170
+ readonly to: "element";
171
+ readonly css: true;
172
+ readonly resolve: (context: LocatorContext, selector: string) => Element[];
173
+ readonly render: (selector: unknown) => {
174
+ fragment: string;
175
+ separator: "descend";
176
+ };
177
+ };
178
+ readonly frameLocator: {
179
+ readonly to: "frame";
180
+ readonly css: true;
181
+ readonly barrier: "down";
182
+ readonly resolve: (context: LocatorContext, selector: string) => Element[];
183
+ readonly render: (selector: unknown) => {
184
+ fragment: string;
185
+ separator: "down";
186
+ };
187
+ };
188
+ readonly getByRole: {
189
+ readonly to: "element";
190
+ readonly resolve: (context: LocatorContext, role: string) => Element[];
191
+ readonly render: (role: unknown) => {
192
+ fragment: string;
193
+ };
194
+ };
195
+ readonly getByText: {
196
+ readonly to: "element";
197
+ readonly resolve: (context: LocatorContext, text: string) => Element[];
198
+ readonly render: (text: unknown) => {
199
+ fragment: string;
200
+ };
201
+ };
202
+ readonly getByTestId: {
203
+ readonly to: "element";
204
+ readonly resolve: (context: LocatorContext, testId: string) => Element[];
205
+ readonly render: (testId: unknown) => {
206
+ fragment: string;
207
+ };
208
+ };
209
+ readonly first: {
210
+ readonly to: "element";
211
+ readonly resolve: (context: LocatorContext) => Element[];
212
+ readonly render: () => {
213
+ fragment: string;
214
+ };
215
+ };
216
+ readonly nth: {
217
+ readonly to: "element";
218
+ readonly resolve: (context: LocatorContext, index: number) => Element[];
219
+ readonly render: (index: unknown) => {
220
+ fragment: string;
221
+ };
222
+ };
223
+ };
224
+ readonly operations: {
225
+ readonly click: {
226
+ readonly resolve: (context: LocatorContext, options?: PositionOptions$1) => void;
227
+ };
228
+ readonly fill: {
229
+ readonly resolve: (context: LocatorContext, value: string, _options?: OperationOptions) => void;
230
+ };
231
+ readonly hover: {
232
+ readonly resolve: (context: LocatorContext, options?: PositionOptions$1) => void;
233
+ };
234
+ readonly textContent: {
235
+ readonly resolve: (context: LocatorContext, _options?: OperationOptions) => string;
236
+ };
237
+ readonly getAttribute: {
238
+ readonly resolve: (context: LocatorContext, name: string, _options?: OperationOptions) => string | null;
239
+ };
240
+ readonly isVisible: {
241
+ readonly resolve: (context: LocatorContext, _options?: OperationOptions) => boolean;
242
+ };
243
+ readonly count: {
244
+ readonly resolve: (context: LocatorContext, _options?: OperationOptions) => number;
245
+ };
246
+ readonly exists: {
247
+ readonly resolve: (context: LocatorContext, _options?: OperationOptions) => boolean;
248
+ };
249
+ };
250
+ };
251
+ readonly frame: {
252
+ readonly selectors: {
253
+ readonly locator: {
254
+ readonly to: "element";
255
+ readonly css: true;
256
+ readonly resolve: (context: LocatorContext, selector: string) => Element[];
257
+ readonly render: (selector: unknown) => {
258
+ fragment: string;
259
+ separator: "descend";
260
+ };
261
+ };
262
+ readonly frameLocator: {
263
+ readonly to: "frame";
264
+ readonly css: true;
265
+ readonly barrier: "down";
266
+ readonly resolve: (context: LocatorContext, selector: string) => Element[];
267
+ readonly render: (selector: unknown) => {
268
+ fragment: string;
269
+ separator: "down";
270
+ };
271
+ };
272
+ readonly owner: {
273
+ readonly to: "frame";
274
+ readonly barrier: "up";
275
+ readonly resolve: (_context: LocatorContext) => Element[];
276
+ readonly render: () => {
277
+ fragment: string;
278
+ separator: "up";
279
+ };
280
+ };
281
+ };
282
+ readonly operations: {
283
+ readonly addStyleTag: {
284
+ readonly resolve: (context: LocatorContext, options: AddStyleTagOptions$1) => void;
285
+ };
286
+ };
287
+ };
208
288
  };
209
- declare const resolve$7: (context: LocatorContext, _options?: OperationTimeoutOptions) => boolean;
210
- declare namespace count_d_exports {
211
- export { permission$4 as permission, resolve$6 as resolve, type$7 as type };
212
- }
213
- declare const type$7: 'count';
214
- declare const permission$4: {
215
- readonly scope: 'read.count';
216
- readonly category: 'read';
217
- readonly severity: 0;
218
- readonly title: 'Count items on the page';
219
- readonly description: 'Lets the app count how many matching elements are present.';
289
+ type DefaultModules = typeof defaultModules;
290
+ type KindSpec = {
291
+ selectors?: Record<string, SelectorModule>;
292
+ operations?: Record<string, OperationModule>;
220
293
  };
221
- declare const resolve$6: (context: LocatorContext, _options?: OperationTimeoutOptions) => number;
222
- declare namespace exists_d_exports {
223
- export { permission$3 as permission, resolve$5 as resolve, type$6 as type };
224
- }
225
- declare const type$6: 'exists';
226
- declare const permission$3: {
227
- readonly scope: 'read.check';
228
- readonly category: 'read';
229
- readonly severity: 0;
230
- readonly title: 'Check if something is on the page';
231
- readonly description: 'Lets the app test whether a specific element exists.';
294
+ type ModulesSpec = {
295
+ element?: KindSpec;
296
+ frame?: KindSpec;
232
297
  };
233
- declare const resolve$5: (context: LocatorContext, _options?: OperationTimeoutOptions) => boolean;
234
- declare namespace get_attribute_d_exports {
235
- export { permission$2 as permission, resolve$4 as resolve, type$5 as type };
236
- }
237
- declare const type$5: 'getAttribute';
238
- declare const permission$2: {
239
- readonly scope: 'read.info';
240
- readonly category: 'read';
241
- readonly severity: 1;
242
- readonly title: 'Read info from the page';
243
- readonly description: 'Lets the app read the href value from a part of the page.';
298
+ type Merge<A, B> = B extends object ? Omit<A, keyof B> & B : A;
299
+ type MergeKind<A extends KindModules, S> = {
300
+ selectors: Merge<A['selectors'], S extends {
301
+ selectors: infer T;
302
+ } ? T : unknown>;
303
+ operations: Merge<A['operations'], S extends {
304
+ operations: infer T;
305
+ } ? T : unknown>;
244
306
  };
245
- declare const resolve$4: (context: LocatorContext, name: string, _options?: OperationTimeoutOptions) => string | null;
246
- declare namespace video_element_d_exports {
247
- export { permission$1 as permission, resolve$3 as resolve, type$4 as type };
248
- }
249
- declare const type$4: 'videoElement';
250
- declare const permission$1: {
251
- readonly scope: 'media.video';
252
- readonly category: 'media';
253
- readonly severity: 0;
254
- readonly title: 'Control video playback';
255
- readonly description: 'Lets the app play, pause, seek, and read the video on the page.';
307
+ type Extended<B extends Modules, S extends ModulesSpec> = {
308
+ element: MergeKind<B['element'], S['element']>;
309
+ frame: MergeKind<B['frame'], S['frame']>;
256
310
  };
257
- declare const resolve$3: (context: LocatorContext, _options?: OperationTimeoutOptions) => RemoteVideoElement;
258
311
  //#endregion
259
- //#region node_modules/@mfkn/web-extension/lib/content-script/resolvers/locators/locator.d.ts
260
- declare const locatorModule: {
261
- readonly type: "locator";
262
- readonly selectorModules: readonly [typeof locator_d_exports, {
263
- readonly type: 'frameLocator';
264
- readonly resolve: (context: LocatorContext, selector: string) => HTMLIFrameElement[];
265
- readonly resolvePeer: BarrierResolver;
266
- readonly render: SelectorRenderer;
267
- readonly nextLocatorType: 'frameLocator';
268
- }, typeof get_by_role_d_exports, typeof get_by_text_d_exports, typeof get_by_test_id_d_exports, typeof first_d_exports, typeof nth_d_exports];
269
- readonly operationModules: readonly [typeof click_d_exports, typeof fill_d_exports, typeof hover_d_exports, typeof text_content_d_exports, typeof is_visible_d_exports, typeof count_d_exports, typeof exists_d_exports, typeof get_attribute_d_exports, typeof video_element_d_exports];
270
- };
271
- type LocatorModule = typeof locatorModule;
272
- interface Locator extends LocatorChain<LocatorModule, Locator> {}
273
- declare namespace frame_locator_d_exports {
274
- export { render$1 as render, resolve$2 as resolve, resolvePeer$1 as resolvePeer, type$3 as type };
275
- }
276
- declare const type$3: 'frameLocator';
277
- declare const resolve$2: (context: LocatorContext, selector: string) => HTMLIFrameElement[];
278
- declare const resolvePeer$1: BarrierResolver;
279
- declare const render$1: SelectorRenderer;
280
- declare namespace owner_d_exports {
281
- export { render, resolve$1 as resolve, resolvePeer, type$2 as type };
282
- }
283
- declare const type$2: 'owner';
284
- declare const resolve$1: (_: LocatorContext) => never;
285
- declare const resolvePeer: BarrierResolver;
286
- declare const render: SelectorRenderer;
287
- declare namespace add_style_tag_d_exports {
288
- export { AddStyleTagOptions, appearPermission, appearUnsafePermission, permission, resolve, setInjectedStylesDisabled, type$1 as type };
312
+ //#region node_modules/@mfkn/frame-locator/lib/chain.d.ts
313
+ type ArgsOf<M> = M extends {
314
+ resolve: (context: never, ...args: infer A) => unknown;
315
+ } ? A : never;
316
+ type ResultOf<M> = M extends {
317
+ resolve: (...args: never[]) => infer R;
318
+ } ? Awaited<R> : never;
319
+ type ToOf<M> = M extends {
320
+ to: infer K extends ChainKind;
321
+ } ? K : 'element';
322
+ type ChainOf<M extends Modules, K extends ChainKind> = K extends 'frame' ? FrameLocator<M> : Locator$1<M>;
323
+ type EnsureOptions = OperationOptions & Record<string, unknown>;
324
+ type Chain<M extends Modules, K extends ChainKind> = { [N in keyof M[K]['selectors']]: (...args: ArgsOf<M[K]['selectors'][N]>) => ChainOf<M, ToOf<M[K]['selectors'][N]>> } & { [N in keyof M[K]['operations']]: (...args: ArgsOf<M[K]['operations'][N]>) => Promise<ResultOf<M[K]['operations'][N]>> } & {
325
+ ensure: (operation: Extract<keyof M[K]['operations'], string>, options?: EnsureOptions) => Promise<void>;
326
+ };
327
+ type Locator$1<M extends Modules = DefaultModules> = Chain<M, 'element'>;
328
+ type FrameLocator<M extends Modules = DefaultModules> = Chain<M, 'frame'>;
329
+ declare namespace video_d_exports {
330
+ export { BoxedVideoElement, RemoteVideoElement, VideoElementState, box, createVideoElementHandle, isType, revive, type };
289
331
  }
290
- declare const type$1: 'addStyleTag';
291
- type AddStyleTagOptions = OperationTimeoutOptions & {
292
- content: string;
293
- noSanitize?: boolean;
294
- };
295
- declare const appearPermission: {
296
- readonly scope: 'media.appear';
297
- readonly category: 'media';
298
- readonly severity: 0;
299
- readonly title: 'Change page appearance';
300
- readonly description: 'Lets the app restyle parts of the page (safely filtered).';
332
+ declare const type: 'videoElement';
333
+ type TimeRangesTuple = [number, number][];
334
+ type VideoElementState = {
335
+ currentTime: number;
336
+ volume: number;
337
+ muted: boolean;
338
+ playbackRate: number;
339
+ src: string;
340
+ loop: boolean;
341
+ autoplay: boolean;
342
+ preload: string;
343
+ poster: string;
344
+ disableRemotePlayback: boolean;
345
+ duration: number;
346
+ paused: boolean;
347
+ ended: boolean;
348
+ seeking: boolean;
349
+ readyState: number;
350
+ currentSrc: string;
351
+ buffered: TimeRangesTuple;
352
+ seekable: TimeRangesTuple;
353
+ error: {
354
+ code: number;
355
+ message: string;
356
+ } | null;
301
357
  };
302
- declare const appearUnsafePermission: {
303
- readonly scope: 'media.appearU';
304
- readonly category: 'media';
305
- readonly severity: 2;
306
- readonly unsafe: true;
307
- readonly title: 'Change page appearance (unsafe)';
308
- readonly description: 'Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.';
358
+ type RemoteVideoElement = EventTarget & {
359
+ currentTime: number;
360
+ volume: number;
361
+ muted: boolean;
362
+ playbackRate: number;
363
+ src: string;
364
+ loop: boolean;
365
+ autoplay: boolean;
366
+ preload: string;
367
+ poster: string;
368
+ disableRemotePlayback: boolean;
369
+ readonly duration: number;
370
+ readonly paused: boolean;
371
+ readonly ended: boolean;
372
+ readonly seeking: boolean;
373
+ readonly readyState: number;
374
+ readonly currentSrc: string;
375
+ readonly error: MediaError | null;
376
+ readonly buffered: TimeRanges;
377
+ readonly seekable: TimeRanges;
378
+ play(): Promise<void>;
379
+ pause(): void;
380
+ load(): void;
381
+ requestPictureInPicture(): Promise<void>;
382
+ exitPictureInPicture(): Promise<void>;
383
+ readonly HAVE_FUTURE_DATA: 3;
384
+ readonly HAVE_ENOUGH_DATA: 4;
309
385
  };
310
- declare const permission: (options?: AddStyleTagOptions) => {
311
- readonly scope: 'media.appear';
312
- readonly category: 'media';
313
- readonly severity: 0;
314
- readonly title: 'Change page appearance';
315
- readonly description: 'Lets the app restyle parts of the page (safely filtered).';
316
- } | {
317
- readonly scope: 'media.appearU';
318
- readonly category: 'media';
319
- readonly severity: 2;
320
- readonly unsafe: true;
321
- readonly title: 'Change page appearance (unsafe)';
322
- readonly description: 'Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.';
386
+ type BoxedVideoElement = BoxBase<typeof type> & {
387
+ initialState: VideoElementState;
388
+ controller: Capable;
389
+ } & {
390
+ [UnderlyingType]: RemoteVideoElement;
323
391
  };
324
- declare const setInjectedStylesDisabled: (disabled: boolean) => void;
325
- declare const resolve: (_context: LocatorContext, options: AddStyleTagOptions) => Promise<void>;
326
- //#endregion
327
- //#region node_modules/@mfkn/web-extension/lib/content-script/resolvers/locators/frame-locator.d.ts
328
- declare const frameLocatorModule: {
329
- readonly type: "frameLocator";
330
- readonly selectorModules: readonly [{
331
- readonly type: 'locator';
332
- readonly resolve: (context: LocatorContext, selector: string) => Element[];
333
- readonly render: SelectorRenderer;
334
- readonly nextLocatorType: 'locator';
335
- }, typeof frame_locator_d_exports, typeof owner_d_exports];
336
- readonly operationModules: readonly [typeof add_style_tag_d_exports];
337
- };
338
- type FrameLocatorModule = typeof frameLocatorModule;
339
- interface FrameLocator extends LocatorChain<FrameLocatorModule, FrameLocator> {}
340
- //#endregion
341
- //#region node_modules/@mfkn/web-extension/lib/utils/frame.d.ts
342
- type FrameId = `${number}-${number}`;
392
+ declare const createVideoElementHandle: (element: HTMLVideoElement) => RemoteVideoElement;
393
+ declare const isType: (value: unknown) => value is RemoteVideoElement;
394
+ declare const box: <T extends RemoteVideoElement, T2 extends RevivableContext>(value: T, context: T2) => BoxedVideoElement;
395
+ declare const revive: <T extends BoxedVideoElement, T2 extends RevivableContext>(value: T, context: T2) => T[UnderlyingType];
343
396
  //#endregion
344
- //#region node_modules/@mfkn/web-extension/lib/permission/shared/permission.d.ts
345
- type PermissionCategory = 'read' | 'act' | 'media' | 'embed' | 'network';
346
- type PermissionSeverity = 0 | 1 | 2 | 3 | 4;
347
- type Permission = {
348
- scope: string;
349
- category: PermissionCategory;
350
- severity: PermissionSeverity;
351
- title: string;
352
- description: string;
353
- unsafe?: boolean;
354
- };
397
+ //#region node_modules/@mfkn/web-extension/lib/lib/revivables/index.d.ts
398
+ declare const handleRevivableModules: (defaults: DefaultRevivableModules) => readonly [typeof video_d_exports, typeof import("osra/build/revivables/transfer"), typeof import("osra/build/revivables/identity"), typeof import("osra/build/revivables/array-buffer"), typeof import("osra/build/revivables/date"), typeof import("osra/build/revivables/headers"), typeof import("osra/build/revivables/error"), typeof import("osra/build/revivables/typed-array"), typeof import("osra/build/revivables/promise"), typeof import("osra/build/revivables/function"), typeof import("osra/build/revivables/message-port"), typeof import("osra/build/revivables/readable-stream"), typeof import("osra/build/revivables/writable-stream"), typeof import("osra/build/revivables/abort-signal"), typeof import("osra/build/revivables/response"), typeof import("osra/build/revivables/request"), typeof import("osra/build/revivables/map"), typeof import("osra/build/revivables/set"), typeof import("osra/build/revivables/bigint"), typeof import("osra/build/revivables/symbol"), typeof import("osra/build/revivables/event"), typeof import("osra/build/revivables/async-iterator"), {
399
+ readonly type: 'nonFiniteNumber';
400
+ readonly isType: (value: unknown) => value is number;
401
+ readonly box: (value: number, context: import("osra").RevivableContext<any>) => import("osra/build/revivables/json-primitives").BoxedNonFiniteNumber | number;
402
+ readonly revive: (value: import("osra/build/revivables/json-primitives").BoxedNonFiniteNumber, _context: import("osra").RevivableContext<any>) => number;
403
+ }, {
404
+ readonly type: 'undefined';
405
+ readonly isType: (value: unknown) => value is undefined;
406
+ readonly box: (value: undefined, context: import("osra").RevivableContext<any>) => import("osra/build/revivables/json-primitives").BoxedUndefined | undefined;
407
+ readonly revive: (_value: import("osra/build/revivables/json-primitives").BoxedUndefined, _context: import("osra").RevivableContext<any>) => undefined;
408
+ }, {
409
+ readonly type: 'clonable';
410
+ readonly capableOnly: true;
411
+ readonly isType: (value: unknown) => value is import("osra/build/revivables/fallbacks").Clonable;
412
+ readonly box: (value: import("osra/build/revivables/fallbacks").Clonable, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").Clonable;
413
+ readonly revive: (value: import("osra/build/revivables/fallbacks").BoxedClonable, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").Clonable;
414
+ }, {
415
+ readonly type: 'transferable';
416
+ readonly capableOnly: true;
417
+ readonly isType: (value: unknown) => value is import("osra/build/revivables/fallbacks").Transferable;
418
+ readonly box: (value: import("osra/build/revivables/fallbacks").Transferable, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").Transferable;
419
+ readonly revive: (value: import("osra/build/revivables/fallbacks").BoxedTransferable, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").Transferable;
420
+ }, {
421
+ readonly type: 'blobGuard';
422
+ readonly isType: (value: unknown) => value is never;
423
+ readonly box: (value: never, context: import("osra").RevivableContext<any>) => Blob;
424
+ readonly revive: (value: import("osra/build/revivables/fallbacks").BoxedBlobGuard, _context: import("osra").RevivableContext<any>) => Blob;
425
+ }, typeof import("osra/build/revivables/event-target"), {
426
+ readonly type: 'unclonable';
427
+ readonly isType: (value: unknown) => value is never;
428
+ readonly box: (_value: never, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").BoxedUnclonable;
429
+ readonly revive: (_value: import("osra/build/revivables/fallbacks").BoxedUnclonable, _context: import("osra").RevivableContext<any>) => Record<string, never>;
430
+ }];
355
431
  //#endregion
356
- //#region node_modules/@mfkn/web-extension/lib/content-script/resolvers/locators/types.d.ts
357
- type LocatorContext = {
358
- elements: Element[];
359
- };
360
- type OperationTimeoutOptions = {
361
- timeout?: number;
432
+ //#region node_modules/@mfkn/web-extension/lib/lib/locator-modules.d.ts
433
+ type LocatorOptions = OperationOptions & {
362
434
  reason?: string;
363
435
  };
364
- type BarrierContext = {
365
- parts: SelectorPart[];
366
- selfIndex: number;
367
- resolveLocal: (parts: SelectorPart[]) => Element[];
368
- };
369
- type BarrierResolver = (context: BarrierContext) => Promise<FrameId>;
370
- type SelectorRenderResult = {
371
- fragment: string;
372
- separator?: 'descend' | 'frame-down' | 'frame-up';
436
+ type PositionOptions = LocatorOptions & {
437
+ position?: {
438
+ x?: number;
439
+ y?: number;
440
+ };
373
441
  };
374
- type SelectorRenderer = (...args: any[]) => SelectorRenderResult;
375
- type SelectorModule = {
376
- type: string;
377
- resolve: (context: LocatorContext, ...args: any[]) => Element[];
378
- nextLocatorType?: 'locator' | 'frameLocator';
379
- resolvePeer?: BarrierResolver;
380
- render?: SelectorRenderer;
442
+ type AddStyleTagOptions = LocatorOptions & {
443
+ content: string;
444
+ noSanitize?: boolean;
381
445
  };
382
- type OperationPermission = Permission | ((...args: any[]) => Permission);
383
- type OperationModule = {
384
- type: string;
385
- resolve: (context: LocatorContext, ...args: any[]) => unknown;
386
- permission: OperationPermission;
387
- };
388
- type LocatorKindModule = {
389
- readonly type: string;
390
- readonly selectorModules: readonly SelectorModule[];
391
- readonly operationModules: readonly OperationModule[];
392
- };
393
- type LocatorModules = [LocatorModule, FrameLocatorModule];
394
- type LocatorModuleUnion = LocatorModules[number];
395
- type AnyOperationModule = LocatorModuleUnion['operationModules'][number];
396
- type SelectorPart<L extends LocatorModuleUnion = LocatorModuleUnion> = L extends LocatorModuleUnion ? L['selectorModules'][number] extends infer M extends SelectorModule ? {
397
- locatorType: L['type'];
398
- type: ExtractType<M>;
399
- args: ExtractResolverArgs<M>;
400
- } : never : never;
401
- type NextLocator<M> = M extends {
402
- nextLocatorType: 'frameLocator';
403
- } ? FrameLocator : M extends {
404
- nextLocatorType: 'locator';
405
- } ? Locator : never;
406
- type LocatorChain<L extends LocatorKindModule, Self> = { [M in L['selectorModules'][number] as ExtractType<M>]: [NextLocator<M>] extends [never] ? (...args: ExtractResolverArgs<M>) => Self : (...args: ExtractResolverArgs<M>) => NextLocator<M> } & { [M in L['operationModules'][number] as ExtractType<M>]: (...args: ExtractOperationArgs<M>) => Promise<Awaited<ExtractResolverReturn<M>>> } & {
407
- ensure: (operation: ExtractType<L['operationModules'][number]>, options?: {
408
- reason?: string;
409
- timeout?: number;
410
- subtree?: boolean;
411
- } & Record<string, unknown>) => Promise<void>;
412
- };
413
- type LocatorExecutor = (parts: SelectorPart[], operation: ExtractType<AnyOperationModule>, args: ExtractOperationArgs<AnyOperationModule>) => Promise<unknown>;
414
- type PermissionEnsurer = (parts: SelectorPart[], operation: string, args: unknown[]) => Promise<void>;
446
+ declare const locatorModules: Extended<{
447
+ readonly element: {
448
+ readonly selectors: {
449
+ readonly locator: {
450
+ readonly to: "element";
451
+ readonly css: true;
452
+ readonly resolve: (context: LocatorContext, selector: string) => Element[];
453
+ readonly render: (selector: unknown) => {
454
+ fragment: string;
455
+ separator: "descend";
456
+ };
457
+ };
458
+ readonly frameLocator: {
459
+ readonly to: "frame";
460
+ readonly css: true;
461
+ readonly barrier: "down";
462
+ readonly resolve: (context: LocatorContext, selector: string) => Element[];
463
+ readonly render: (selector: unknown) => {
464
+ fragment: string;
465
+ separator: "down";
466
+ };
467
+ };
468
+ readonly getByRole: {
469
+ readonly to: "element";
470
+ readonly resolve: (context: LocatorContext, role: string) => Element[];
471
+ readonly render: (role: unknown) => {
472
+ fragment: string;
473
+ };
474
+ };
475
+ readonly getByText: {
476
+ readonly to: "element";
477
+ readonly resolve: (context: LocatorContext, text: string) => Element[];
478
+ readonly render: (text: unknown) => {
479
+ fragment: string;
480
+ };
481
+ };
482
+ readonly getByTestId: {
483
+ readonly to: "element";
484
+ readonly resolve: (context: LocatorContext, testId: string) => Element[];
485
+ readonly render: (testId: unknown) => {
486
+ fragment: string;
487
+ };
488
+ };
489
+ readonly first: {
490
+ readonly to: "element";
491
+ readonly resolve: (context: LocatorContext) => Element[];
492
+ readonly render: () => {
493
+ fragment: string;
494
+ };
495
+ };
496
+ readonly nth: {
497
+ readonly to: "element";
498
+ readonly resolve: (context: LocatorContext, index: number) => Element[];
499
+ readonly render: (index: unknown) => {
500
+ fragment: string;
501
+ };
502
+ };
503
+ };
504
+ readonly operations: {
505
+ readonly click: {
506
+ readonly resolve: (context: LocatorContext, options?: PositionOptions$1) => void;
507
+ };
508
+ readonly fill: {
509
+ readonly resolve: (context: LocatorContext, value: string, _options?: OperationOptions) => void;
510
+ };
511
+ readonly hover: {
512
+ readonly resolve: (context: LocatorContext, options?: PositionOptions$1) => void;
513
+ };
514
+ readonly textContent: {
515
+ readonly resolve: (context: LocatorContext, _options?: OperationOptions) => string;
516
+ };
517
+ readonly getAttribute: {
518
+ readonly resolve: (context: LocatorContext, name: string, _options?: OperationOptions) => string | null;
519
+ };
520
+ readonly isVisible: {
521
+ readonly resolve: (context: LocatorContext, _options?: OperationOptions) => boolean;
522
+ };
523
+ readonly count: {
524
+ readonly resolve: (context: LocatorContext, _options?: OperationOptions) => number;
525
+ };
526
+ readonly exists: {
527
+ readonly resolve: (context: LocatorContext, _options?: OperationOptions) => boolean;
528
+ };
529
+ };
530
+ };
531
+ readonly frame: {
532
+ readonly selectors: {
533
+ readonly locator: {
534
+ readonly to: "element";
535
+ readonly css: true;
536
+ readonly resolve: (context: LocatorContext, selector: string) => Element[];
537
+ readonly render: (selector: unknown) => {
538
+ fragment: string;
539
+ separator: "descend";
540
+ };
541
+ };
542
+ readonly frameLocator: {
543
+ readonly to: "frame";
544
+ readonly css: true;
545
+ readonly barrier: "down";
546
+ readonly resolve: (context: LocatorContext, selector: string) => Element[];
547
+ readonly render: (selector: unknown) => {
548
+ fragment: string;
549
+ separator: "down";
550
+ };
551
+ };
552
+ readonly owner: {
553
+ readonly to: "frame";
554
+ readonly barrier: "up";
555
+ readonly resolve: (_context: LocatorContext) => Element[];
556
+ readonly render: () => {
557
+ fragment: string;
558
+ separator: "up";
559
+ };
560
+ };
561
+ };
562
+ readonly operations: {
563
+ readonly addStyleTag: {
564
+ readonly resolve: (context: LocatorContext, options: AddStyleTagOptions$1) => void;
565
+ };
566
+ };
567
+ };
568
+ }, {
569
+ readonly element: {
570
+ operations: {
571
+ click: {
572
+ resolve: (context: LocatorContext, options?: PositionOptions) => void;
573
+ };
574
+ hover: {
575
+ resolve: (context: LocatorContext, options?: PositionOptions) => void;
576
+ };
577
+ fill: {
578
+ resolve: (context: LocatorContext, value: string, options?: LocatorOptions) => void;
579
+ };
580
+ textContent: {
581
+ resolve: (context: LocatorContext, _options?: LocatorOptions) => string;
582
+ };
583
+ getAttribute: {
584
+ resolve: (context: LocatorContext, name: string, _options?: LocatorOptions) => string | null;
585
+ };
586
+ isVisible: {
587
+ resolve: (context: LocatorContext, _options?: LocatorOptions) => boolean;
588
+ };
589
+ count: {
590
+ resolve: (context: LocatorContext, _options?: LocatorOptions) => number;
591
+ };
592
+ exists: {
593
+ resolve: (context: LocatorContext, _options?: LocatorOptions) => boolean;
594
+ };
595
+ videoElement: {
596
+ resolve: (context: LocatorContext, _options?: LocatorOptions) => RemoteVideoElement;
597
+ };
598
+ };
599
+ };
600
+ readonly frame: {
601
+ operations: {
602
+ addStyleTag: {
603
+ resolve: (context: LocatorContext, options: AddStyleTagOptions) => void;
604
+ };
605
+ };
606
+ };
607
+ }>;
608
+ type LocatorModules = typeof locatorModules;
415
609
  //#endregion
416
610
  //#region node_modules/@mfkn/web-extension/lib/lib/frame-url.d.ts
417
611
  declare const isBlockedFrameUrl: (raw: string) => boolean;
@@ -427,6 +621,7 @@ declare const assertLockdownApplicable: ({
427
621
  }) => void;
428
622
  //#endregion
429
623
  //#region node_modules/@mfkn/web-extension/lib/lib/frame-core.d.ts
624
+ type Locator = Locator$1<LocatorModules>;
430
625
  declare const attachFramePermission: {
431
626
  readonly scope: 'embed.iframe';
432
627
  readonly category: 'embed';
@@ -445,7 +640,7 @@ type GotoOptions = {
445
640
  waitUntil?: 'documentstart' | 'load';
446
641
  domains?: string[];
447
642
  };
448
- type Frame = FrameLocator & {
643
+ type Frame = FrameLocator<LocatorModules> & {
449
644
  goto(url: string, options?: GotoOptions): Promise<void>;
450
645
  url(): string;
451
646
  };
@@ -456,8 +651,8 @@ type AttachFrameOptions = {
456
651
  lockdown?: boolean;
457
652
  };
458
653
  type FrameBackend = {
459
- executeLocator: LocatorExecutor;
460
- ensurePermission: PermissionEnsurer;
654
+ executor: Executor;
655
+ gate?: Gate;
461
656
  goto(url: string, options?: GotoOptions): Promise<void>;
462
657
  url(): string;
463
658
  };
@@ -603,108 +798,6 @@ type PermissionGrant = {
603
798
  declare const permissions: {
604
799
  request: (requests: PermissionRequest[]) => Promise<PermissionGrant[]>;
605
800
  };
606
- declare namespace video_d_exports {
607
- export { BoxedVideoElement, RemoteVideoElement, VideoElementState, box, createVideoElementHandle, isType, revive, type };
608
- }
609
- declare const type: 'videoElement';
610
- type TimeRangesTuple = [number, number][];
611
- type VideoElementState = {
612
- currentTime: number;
613
- volume: number;
614
- muted: boolean;
615
- playbackRate: number;
616
- src: string;
617
- loop: boolean;
618
- autoplay: boolean;
619
- preload: string;
620
- poster: string;
621
- disableRemotePlayback: boolean;
622
- duration: number;
623
- paused: boolean;
624
- ended: boolean;
625
- seeking: boolean;
626
- readyState: number;
627
- currentSrc: string;
628
- buffered: TimeRangesTuple;
629
- seekable: TimeRangesTuple;
630
- error: {
631
- code: number;
632
- message: string;
633
- } | null;
634
- };
635
- type RemoteVideoElement = EventTarget & {
636
- currentTime: number;
637
- volume: number;
638
- muted: boolean;
639
- playbackRate: number;
640
- src: string;
641
- loop: boolean;
642
- autoplay: boolean;
643
- preload: string;
644
- poster: string;
645
- disableRemotePlayback: boolean;
646
- readonly duration: number;
647
- readonly paused: boolean;
648
- readonly ended: boolean;
649
- readonly seeking: boolean;
650
- readonly readyState: number;
651
- readonly currentSrc: string;
652
- readonly error: MediaError | null;
653
- readonly buffered: TimeRanges;
654
- readonly seekable: TimeRanges;
655
- play(): Promise<void>;
656
- pause(): void;
657
- load(): void;
658
- requestPictureInPicture(): Promise<void>;
659
- exitPictureInPicture(): Promise<void>;
660
- readonly HAVE_FUTURE_DATA: 3;
661
- readonly HAVE_ENOUGH_DATA: 4;
662
- };
663
- type BoxedVideoElement = BoxBase<typeof type> & {
664
- initialState: VideoElementState;
665
- controller: Capable;
666
- } & {
667
- [UnderlyingType]: RemoteVideoElement;
668
- };
669
- declare const createVideoElementHandle: (element: HTMLVideoElement) => RemoteVideoElement;
670
- declare const isType: (value: unknown) => value is RemoteVideoElement;
671
- declare const box: <T extends RemoteVideoElement, T2 extends RevivableContext>(value: T, context: T2) => BoxedVideoElement;
672
- declare const revive: <T extends BoxedVideoElement, T2 extends RevivableContext>(value: T, context: T2) => T[UnderlyingType];
673
- //#endregion
674
- //#region node_modules/@mfkn/web-extension/lib/lib/revivables/index.d.ts
675
- declare const handleRevivableModules: (defaults: DefaultRevivableModules) => readonly [typeof video_d_exports, typeof import("osra/build/revivables/transfer"), typeof import("osra/build/revivables/identity"), typeof import("osra/build/revivables/array-buffer"), typeof import("osra/build/revivables/date"), typeof import("osra/build/revivables/headers"), typeof import("osra/build/revivables/error"), typeof import("osra/build/revivables/typed-array"), typeof import("osra/build/revivables/promise"), typeof import("osra/build/revivables/function"), typeof import("osra/build/revivables/message-port"), typeof import("osra/build/revivables/readable-stream"), typeof import("osra/build/revivables/writable-stream"), typeof import("osra/build/revivables/abort-signal"), typeof import("osra/build/revivables/response"), typeof import("osra/build/revivables/request"), typeof import("osra/build/revivables/map"), typeof import("osra/build/revivables/set"), typeof import("osra/build/revivables/bigint"), typeof import("osra/build/revivables/symbol"), typeof import("osra/build/revivables/event"), typeof import("osra/build/revivables/async-iterator"), {
676
- readonly type: 'nonFiniteNumber';
677
- readonly isType: (value: unknown) => value is number;
678
- readonly box: (value: number, context: import("osra").RevivableContext<any>) => import("osra/build/revivables/json-primitives").BoxedNonFiniteNumber | number;
679
- readonly revive: (value: import("osra/build/revivables/json-primitives").BoxedNonFiniteNumber, _context: import("osra").RevivableContext<any>) => number;
680
- }, {
681
- readonly type: 'undefined';
682
- readonly isType: (value: unknown) => value is undefined;
683
- readonly box: (value: undefined, context: import("osra").RevivableContext<any>) => import("osra/build/revivables/json-primitives").BoxedUndefined | undefined;
684
- readonly revive: (_value: import("osra/build/revivables/json-primitives").BoxedUndefined, _context: import("osra").RevivableContext<any>) => undefined;
685
- }, {
686
- readonly type: 'clonable';
687
- readonly capableOnly: true;
688
- readonly isType: (value: unknown) => value is import("osra/build/revivables/fallbacks").Clonable;
689
- readonly box: (value: import("osra/build/revivables/fallbacks").Clonable, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").Clonable;
690
- readonly revive: (value: import("osra/build/revivables/fallbacks").BoxedClonable, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").Clonable;
691
- }, {
692
- readonly type: 'transferable';
693
- readonly capableOnly: true;
694
- readonly isType: (value: unknown) => value is import("osra/build/revivables/fallbacks").Transferable;
695
- readonly box: (value: import("osra/build/revivables/fallbacks").Transferable, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").Transferable;
696
- readonly revive: (value: import("osra/build/revivables/fallbacks").BoxedTransferable, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").Transferable;
697
- }, {
698
- readonly type: 'blobGuard';
699
- readonly isType: (value: unknown) => value is never;
700
- readonly box: (value: never, context: import("osra").RevivableContext<any>) => Blob;
701
- readonly revive: (value: import("osra/build/revivables/fallbacks").BoxedBlobGuard, _context: import("osra").RevivableContext<any>) => Blob;
702
- }, typeof import("osra/build/revivables/event-target"), {
703
- readonly type: 'unclonable';
704
- readonly isType: (value: unknown) => value is never;
705
- readonly box: (_value: never, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").BoxedUnclonable;
706
- readonly revive: (_value: import("osra/build/revivables/fallbacks").BoxedUnclonable, _context: import("osra").RevivableContext<any>) => Record<string, never>;
707
- }];
708
801
  //#endregion
709
802
  //#region node_modules/@mfkn/web-extension/lib/utils/extension.d.ts
710
803
  type ExtensionEventMap = {
@@ -718,4 +811,4 @@ type MissingExtensionHandler = () => Promise<void>;
718
811
  declare const setMissingExtensionHandler: (handler: MissingExtensionHandler | null) => void;
719
812
  declare const waitForExtensionExposure: (timeout?: number) => Promise<void>;
720
813
  //#endregion
721
- export { RequestHeaderRule as A, assertFetchableUrl as B, attachFramePermission as C, assertLockdownApplicable as D, assertAttachableFrameUrl as E, SiteCookie as F, isBlockedFetchUrl as G, fetchCredentialedPermission as H, cookies as I, isLocalNetworkUrl as K, readCookiePermission as L, removeRequestHeaderRule as M, setRequestHeaderRule as N, isBlockedFrameUrl as O, CookieDetails as P, FetchInit as R, GotoOptions as S, gotoPermission as T, fetchLocalPermission as U, fetch as V, fetchPermission as W, ATTACH_FRAME_EVENT_KEY as _, handleRevivableModules as a, Frame as b, VideoElementState as c, isType as d, revive as f, permissions as g, PermissionRequest as h, waitForExtensionExposure as i, modifyRequestHeadersPermission as j, HeaderOperation as k, box as l, PermissionGrant as m, isExtensionExposed as n, BoxedVideoElement as o, type as p, setMissingExtensionHandler as r, RemoteVideoElement as s, extension as t, createVideoElementHandle as u, attachFrame as v, createFrame as w, FrameBackend as x, AttachFrameOptions as y, ProxyFetchRequest as z };
814
+ export { fetch as $, LOCATOR_DENIED as A, SelectorPart as B, RemoteVideoElement as C, isType as D, createVideoElementHandle as E, isTerminalError as F, setRequestHeaderRule as G, RequestHeaderRule as H, Executor as I, cookies as J, CookieDetails as K, Gate as L, LOCATOR_UNSUPPORTED as M, isLocatorDenied as N, revive as O, isLocatorUnsupported as P, assertFetchableUrl as Q, GateTools as R, BoxedVideoElement as S, box as T, modifyRequestHeadersPermission as U, HeaderOperation as V, removeRequestHeaderRule as W, FetchInit as X, readCookiePermission as Y, ProxyFetchRequest as Z, gotoPermission as _, PermissionGrant as a, isBlockedFrameUrl as b, ATTACH_FRAME_EVENT_KEY as c, Frame as d, fetchCredentialedPermission as et, FrameBackend as f, createFrame as g, attachFramePermission as h, waitForExtensionExposure as i, isLocalNetworkUrl as it, LOCATOR_ERROR as j, type as k, attachFrame as l, Locator as m, isExtensionExposed as n, fetchPermission as nt, PermissionRequest as o, GotoOptions as p, SiteCookie as q, setMissingExtensionHandler as r, isBlockedFetchUrl as rt, permissions as s, extension as t, fetchLocalPermission as tt, AttachFrameOptions as u, assertAttachableFrameUrl as v, VideoElementState as w, handleRevivableModules as x, assertLockdownApplicable as y, OperationRequest as z };