export type TokenSource = "env" | "file" | "none";
export declare function readToken(): {
    token: string;
    source: TokenSource;
} | null;
export declare function writeToken(token: string): void;
export declare function hasToken(): boolean;
export type TokenValidationStatus = "valid" | "auth_error" | "error";
export interface TokenValidation {
    status: TokenValidationStatus;
    latencyMs: number;
    error?: string;
}
export declare function validateToken(token: string): Promise<TokenValidation>;
//# sourceMappingURL=replicate-key.d.ts.map