import type { Profile, ProfileMetadata } from "./types.js"; export type AutoResult = { ok: true; value: T; } | { ok: false; reason: "timeout"; } | { ok: false; reason: "error"; error: unknown; }; export declare function withAutoTimeout(promise: Promise, ms: number): Promise>; export declare function validateProfileId(profileId: string): void; export declare function ensureProfilesDir(dir: string): Promise; export declare function saveProfile(dir: string, profileId: string, userId: string, cookies: unknown[], options?: { description?: string; lastUrl?: string; }): Promise; export declare function loadProfile(dir: string, profileId: string): Promise; export declare function listProfiles(dir: string): Promise>; export declare function deleteProfile(dir: string, profileId: string): Promise; //# sourceMappingURL=profiles.d.ts.map