import { type Locale } from './locale.js'; export interface AuthenticationResult { email: string; method: 'password' | 'browser' | 'api-key' | 'existing'; } type Fetcher = typeof fetch; export declare function authenticateWithPassword(email: string, password: string, requestMfa: () => Promise, home: string, fetcher?: Fetcher): Promise; export declare function authenticateWithApiKey(apiKey: string, home: string, fetcher?: Fetcher): Promise; export declare function validateExistingAuthentication(home: string, fetcher?: Fetcher): Promise; export declare function openVaultBrowser(url: string): Promise; export declare function authenticateWithBrowser(home: string, options?: { locale?: Locale; callbackHtml?: string; signal?: AbortSignal; fetcher?: Fetcher; openBrowser?: (url: string) => Promise; timeoutMs?: number; report?: (message: string) => void; }): Promise; export {};