interface TargetedCredentials {
    last_target: string | null;
    targets: {
        [target: string]: Tokens;
    };
}
interface Tokens {
    operation_token: string;
    refresh_token: string;
}
/**
 * Normalizes a target operations API URL to a canonical form (with trailing slash).
 */
export declare function normalizeTarget(target: string): string;
/**
 * Loads the JWT credentials from the ~/.harperdb/credentials.json file.
 */
export declare function loadCredentials(): TargetedCredentials;
/**
 * Saves the JWT credentials to the ~/.harperdb/credentials.json file.
 */
export declare function saveCredentials(target: string, tokens: Tokens): void;
/**
 * Deletes the credentials for a specific target or all if no target provided.
 */
export declare function clearCredentials(target: string): void;
export {};
