import { DefaultKeysSchema, GlobalCacheClient } from '@global-cache/core'; import { PlaywrightLikeConfig } from './pw-config'; export type WrapOptions = { /** * Callback to run after each test-run, before global-cache resets. * Runs reliably in VSCode and UI mode (unlike globalTeardown). * * > **Note:** Prefer dynamic imports inside this callback over static imports * > at the top of playwright.config.ts. Static imports are evaluated in every * > worker process, while this callback only runs in the main process. */ cleanup?: () => Promise | void; }; export declare class GlobalCache extends GlobalCacheClient { cleanup?: () => Promise | void; /** * Wrap Playwright config to include global-cache setup, teardown and reporter. */ wrap(config: T, options?: WrapOptions): T; get setup(): string; get reporter(): string; } export declare const globalCache: GlobalCache; //# sourceMappingURL=index.d.ts.map