export declare function loadToken(hostUrl: string): {
    host: string;
    token: string;
    updatedAt: string;
} | null;
export declare function saveToken(token: string, hostUrl: string, umi_locale?: string): void;
export declare function clearToken(hostUrl: string): void;
export declare function resolveHost(override?: string): string;
/** 读取 AE 项目 language（umi_locale）—— 优先浏览器 localStorage，fallback 缓存 */
export declare function readUmilocal(hostUrl: string): string | undefined;
/** 通过 osascript 写浏览器 localStorage 的 umi_locale（macOS only），返回是否成功 */
export declare function writeUmilocale(hostUrl: string, value: string): boolean;
export declare function getToken(hostUrl: string): Promise<{
    token: string;
    browser?: string;
}>;
