UNPKG

navflow-browser-server

Version:

Standalone Playwright browser server for NavFlow - enables browser automation with API key authentication, workspace device management, session sync, LLM discovery tools, and requires Node.js v22+

48 lines 1.33 kB
/** * DataDirectory utility for managing persistent data storage across browser-server versions * Ensures session data persists through npm version updates by using global OS directories */ export declare class DataDirectory { private static globalDataDir; /** * Get the global data directory path based on OS * - macOS/Linux: ~/.navflow/ * - Windows: %APPDATA%/NavFlow/ */ static getGlobalDataDir(): string; /** * Get the global cookies directory */ static getCookiesDir(): string; /** * Get the global sessions directory */ static getSessionsDir(): string; /** * Get the global device config directory */ static getDeviceConfigDir(): string; /** * Ensure all necessary directories exist */ static ensureDirectories(): Promise<void>; /** * Check if legacy data exists in the old location */ static hasLegacyData(): Promise<{ cookies: boolean; sessions: boolean; }>; /** * Migrate legacy data from old location to global location */ static migrateLegacyData(): Promise<{ migrated: boolean; errors: string[]; }>; /** * Display data directory information */ static displayInfo(): void; } //# sourceMappingURL=DataDirectory.d.ts.map