123456789101112131415161718192021 |
- import type { CommonDataTypes } from '../../../protocol/protocol.js';
- import type { CdpTarget } from './cdpTarget.js';
- import type { BidiPreloadScript } from './bidiPreloadScript.js';
- /**
- * BidiPreloadScripts can be filtered by either context ID, BiDi ID or
- * target ID.
- */
- export type BidiPreloadScriptFilter = Partial<Pick<BidiPreloadScript, 'contextId'> & Pick<BidiPreloadScript, 'id'> & Pick<CdpTarget, 'targetId'>> & {
- contextIds?: (CommonDataTypes.BrowsingContext | null)[];
- };
- /**
- * Container class for preload scripts.
- */
- export declare class PreloadScriptStorage {
- #private;
- /** Finds all entries that match the given filter. */
- findPreloadScripts(filter?: BidiPreloadScriptFilter): BidiPreloadScript[];
- addPreloadScript(preloadScript: BidiPreloadScript): void;
- /** Deletes all BiDi preload script entries that match the given filter. */
- removeBiDiPreloadScripts(filter?: BidiPreloadScriptFilter): void;
- }
|