import type { BrowserContext } from '@playwright/test'; export type StorageState = Awaited>; /** * Adds a snapshot to the repository */ export declare function setState(key: string, state: StorageState): void; /** * Returns a snapshot from storage */ export declare function getState(key: string): Promise<{ cookies: Array<{ name: string; value: string; domain: string; path: string; expires: number; httpOnly: boolean; secure: boolean; sameSite: "Strict" | "Lax" | "None"; }>; origins: Array<{ origin: string; localStorage: Array<{ name: string; value: string; }>; }>; } | undefined>; /** * Checks if a snapshot is in the repository */ export declare function hasState(key: string): Promise; /** * Deletes a snapshot from storage */ export declare function deleteState(key: string): void;