import { type SidebarState } from '../sidebar-state'; import type { FallbackAccountManager, isOAuthAccount, loadAccounts } from './accounts'; import type { whamUsageFn } from './provider'; import type { QuotaManager } from './quota-manager'; declare const log: { error: (m: string, d?: unknown) => void; warn: (m: string, d?: unknown) => void; info: (m: string, d?: unknown) => void; debug: (m: string, d?: unknown) => void; trace: (m: string, d?: unknown) => void; }; type QuotaLogger = Pick; export interface RefreshAllQuotaDeps { getAuth: () => Promise<{ type: string; access?: string; refresh?: string; expires?: number; }>; codexRefreshFn: (input: { refreshToken: string; fetchImpl: typeof fetch; now: () => number; }) => Promise<{ access: string; refresh: string; expires: number; }>; refreshMainWithLease: () => Promise<{ access: string; refresh: string; expires: number; }>; fallbackManager: FallbackAccountManager; quotaManager: QuotaManager; loadAccounts: typeof loadAccounts; writeSidebarState: (qm: QuotaManager, store: Awaited>) => Promise; client: { auth: { set: (input: { path: { id: string; }; body: { type: string; access?: string; refresh: string; expires?: number; }; }) => Promise; }; }; fetchImpl: typeof fetch; now: () => number; configPath: string; storageMainAccountId: string | undefined; isOAuthAccountFn: typeof isOAuthAccount; whamFn?: typeof whamUsageFn; respectBackoff?: boolean; logger?: QuotaLogger; skipFresherThanMs?: number; readSidebarState?: () => Promise; } export interface RefreshAllQuotaOptions { accountKey?: string; } export interface RefreshAllQuotaOptions { accountKey?: string; } export interface RefreshAllQuotaResult { account: string; ok: boolean; error?: string; } export declare function refreshAllQuota(deps: RefreshAllQuotaDeps, options?: RefreshAllQuotaOptions): Promise; export {};