/** * Authentication configuration — stored at `~/.config/slaminar/auth.json` * * Security: * - File is written with 0600 permission (owner read/write only) * - Contains API tokens — treat as sensitive * * Team play: * - Project-level team config (.slaminar/config.json) can specify * preferred provider/model but NEVER stores tokens. * - Personal tokens stay in ~/.config/slaminar/auth.json only. */ export type AuthProvider = 'cloudflare' | 'anthropic'; export interface CloudflareAuth { accountId: string; accountName?: string; apiToken: string; model: string; } export interface AnthropicAuth { apiKey: string; model: string; } export interface AuthConfig { version: 1; active: AuthProvider | null; providers: { cloudflare?: CloudflareAuth; anthropic?: AnthropicAuth; }; savedAt: string; } export declare function getConfigDir(): string; export declare function getAuthFilePath(): string; export declare function loadAuthConfig(): AuthConfig | null; export declare function saveAuthConfig(config: AuthConfig): string; export declare function clearAuthConfig(): boolean; export declare function getActiveAuth(config: AuthConfig): CloudflareAuth | AnthropicAuth | null;