export interface DiscoveryResult { found: boolean; source?: 'env' | 'declined'; clientId?: string; apiKey?: string; sourcePath?: string; } export interface EnvFileInfo { exists: boolean; files: string[]; } /** * Check if env files exist in the project directory (without reading contents). * Returns which files were found so the UI can prompt for consent. */ export declare function checkForEnvFiles(projectDir: string): Promise; /** * Scan a single env file for WorkOS credentials. * Only extracts WORKOS_CLIENT_ID and WORKOS_API_KEY - ignores all other variables. */ export declare function scanEnvFile(filePath: string): Promise<{ clientId?: string; apiKey?: string; }>; /** * Validate client ID format. * WorkOS client IDs start with 'client_' prefix. */ export declare function isValidClientId(value: string): boolean; /** * Validate API key format. * WorkOS secret keys start with 'sk_' prefix. */ export declare function isValidApiKey(value: string): boolean; /** * Discover WorkOS credentials from project env files. * Must be called AFTER user consent is given. * * Scans files in priority order: .env.local > .env.development.local > .env.development > .env * Returns first complete match (both clientId and apiKey preferred, but clientId-only is valid). */ export declare function discoverCredentials(projectDir: string): Promise;