export interface Credentials { access_token: string; refresh_token: string; user_id: number; quota: number; expires_at: number; } interface LoomProfile { type: "loom"; credentials: Credentials; } interface ByokProfile { type: "byok"; api_key: string; base_url: string; } type Profile = LoomProfile | ByokProfile; interface LoomConfig { active_profile: string; settings: { default_video_model?: string; default_image_model?: string; default_chat_model?: string; }; profiles: Record; } export declare function loadConfig(): LoomConfig; export declare function saveConfig(config: LoomConfig): void; export declare function getActiveProfileName(): string; export declare function getActiveProfile(): Profile | null; export declare function useProfile(name: string): boolean; export declare function listProfiles(): Array<{ name: string; type: string; active: boolean; }>; export declare function deleteProfile(name: string): boolean; export declare function loadCreds(): Credentials | null; export declare function saveCreds(creds: Credentials): void; export declare function clearCreds(): void; export declare function getSetting(key: string): string | undefined; export declare function setSetting(key: string, value: string): void; export interface ByokConfig { api_key: string; base_url: string; } export declare function saveByokProfile(name: string, config: ByokConfig): void; export declare function getByokConfig(): ByokConfig | null; export declare function isActiveByok(): boolean; export {};