import { type ProviderName } from "./registry.js"; export interface ProviderCredentials { apiKey?: string; accessToken?: string; refreshToken?: string; expiresAt?: string; tokenType?: string; } export interface ProviderCredentialsFile { version: number; updatedAt: string; providers: Record; } export type ProviderAuthSource = "env" | "credentials" | "missing"; export declare function getCredentialsPath(): string; export declare function readCredentialsFile(): ProviderCredentialsFile; export declare function writeCredentialsFile(data: ProviderCredentialsFile): void; export declare function getProviderCredentials(provider: ProviderName): ProviderCredentials | undefined; export declare function setProviderCredentials(provider: ProviderName, credentials: ProviderCredentials): void; export declare function deleteProviderCredentials(provider: ProviderName): boolean; export declare function saveProviderToken(providerName: string, token: string): ProviderCredentials; export declare function resolveProviderToken(providerName: string): { token?: string; source: ProviderAuthSource; envVar?: string; };