import type { GetClientCookieParams } from './cookies';
import type { StorageCache } from './storage';
export type JWTHandlerParams = {
    frontendApi: string;
} & ({
    sync?: false;
} | ({
    sync: true;
} & GetClientCookieParams));
export type JWTHandler = ReturnType<typeof JWTHandler>;
export declare function JWTHandler(store: StorageCache, params: JWTHandlerParams): {
    get: () => Promise<string>;
    listener: () => {
        add: () => void;
        has: () => boolean;
        remove: () => void;
    } | undefined;
    set: (value: string) => Promise<void>;
    remove: () => Promise<void>;
};
//# sourceMappingURL=jwt-handler.d.ts.map