import type { BrowserContext } from 'playwright'; import type { StoredSession } from './types.js'; declare class StorageManager { /** * Ensure the sessions directory structure exists */ private ensureDir; /** * Get the path for a stored session file */ private getSessionPath; /** * Get the path for a domain lock file */ private getLockPath; /** * Save the current browser context's storage state to a named file */ save(context: BrowserContext, domain: string, name: string): Promise; /** * Load a stored session into a browser context * Returns the storage state object to be used when creating a new context */ load(domain: string, name: string): Promise; /** * Check if a stored session exists */ exists(domain: string, name: string): Promise; /** * List all stored sessions, optionally filtered by domain */ list(domain?: string): Promise; /** * Delete a stored session */ delete(domain: string, name: string): Promise; /** * Acquire a lock for a domain (used during auth flows) */ acquireLock(domain: string): Promise; /** * Release a lock for a domain */ releaseLock(domain: string): Promise; /** * Check if a domain is currently locked */ isLocked(domain: string): Promise; } export declare const storageManager: StorageManager; export {}; //# sourceMappingURL=storage.d.ts.map