export interface LocalStorageAuthOptions { accessTokenKey?: string; refreshTokenKey?: string; } export interface LocalStorageAuth { getToken: () => string | null; setToken: (token: string) => void; getRefreshToken: () => string | null; setRefreshToken: (token: string) => void; clearAuth: () => void; } /** * 创建基于 localStorage 的 auth 存取器。 */ export declare function createLocalStorageAuth(options?: LocalStorageAuthOptions): LocalStorageAuth; export declare const localStorageAuth: LocalStorageAuth; export declare const getToken: () => string | null; export declare const setToken: (token: string) => void; export declare const getRefreshToken: () => string | null; export declare const setRefreshToken: (token: string) => void; export declare const clearAuth: () => void; //# sourceMappingURL=storageAuth.d.ts.map