export interface StoredTokens { accessToken: string; refreshToken?: string; expiresAt?: number; } export interface AuthState { siteFqdn: string; clientId: string; tokens: StoredTokens; user?: { id: string; email: string; }; kind?: 'pat'; } export declare const getConfigDir: () => string; export declare const ensureConfigDir: () => string; export declare const readAuth: () => AuthState | null; export declare const saveAuth: (state: AuthState) => void; export declare const deleteAuth: () => Promise; export declare const mutateAuth: (fn: (current: AuthState | null) => AuthState | null | void) => Promise;