import { TokensFromRefresh } from "./model.js"; import { TokensFromStorage } from "./storage.js"; export declare function scheduleRefresh(...args: Parameters): Promise<(() => void) | undefined>; type TokensForRefresh = Partial>; declare function _scheduleRefresh({ abort, tokensCb, isRefreshingCb, }: { abort?: AbortSignal; tokensCb?: (res: TokensFromRefresh) => void | Promise; isRefreshingCb?: (isRefreshing: boolean) => unknown; }): Promise<(() => void) | undefined>; export declare function refreshTokens(...args: Parameters): Promise; declare function _refreshTokens({ abort, tokensCb, isRefreshingCb, tokens, }: { abort?: AbortSignal; tokensCb?: (res: TokensFromRefresh) => void | Promise; isRefreshingCb?: (isRefreshing: boolean) => unknown; tokens?: TokensForRefresh; }): Promise; export {};