export interface CliAccountRef {
    username: string;
    env: string;
}
export interface CliStoredSession {
    token: string;
    updatedAt: string;
}
export interface CliAccountSession extends CliAccountRef, CliStoredSession {
}
export interface CliConfig {
    version?: number;
    currentAccount?: CliAccountRef | null;
    accounts?: Record<string, Record<string, CliStoredSession>>;
    token?: string;
    env?: string;
    currentUsername?: string;
}
export declare function loadConfig(): CliConfig;
export declare function saveConfig(cfg: CliConfig): void;
export declare function clearConfig(): void;
export declare function getConfig(): {
    path: string;
};
export declare function listAccountSessions(cfg?: CliConfig): CliAccountSession[];
export declare function getCurrentAccountSession(cfg?: CliConfig): CliAccountSession | null;
export declare function findAccountSession(username: string, env?: string, cfg?: CliConfig): CliAccountSession | null;
export declare function listAccountSessionsForUsername(username: string, cfg?: CliConfig): CliAccountSession[];
export declare function saveAccountSession(input: {
    username: string;
    env: string;
    token: string;
    updatedAt?: string;
}): CliConfig;
export declare function migrateLegacySession(input: {
    username: string;
    env: string;
    token: string;
}): CliConfig;
export declare function setCurrentAccount(input: {
    username: string;
    env?: string;
}): CliConfig;
export declare function removeAccountSession(input?: {
    username?: string;
    env?: string;
}): CliConfig;
