import { CredentialManager } from './credential-manager.js'; import { type ExtractedWorkspace } from './token-extractor.js'; export declare function ensureSlackAuth(): Promise; export type RefreshResult = { token: string; workspace_id: string; workspace_name: string; }; export type RefreshContext = { resolvedTeamIds?: Set; refreshCache?: Map; }; export declare function refreshKnownWorkspaceDomains(cookie: string, workspaceDomains: Record, context?: RefreshContext): Promise; export declare function tryWebTokenRefresh(ws: ExtractedWorkspace, workspaceDomains: Record, context?: RefreshContext): Promise; export declare function refreshTokenFromWeb(domain: string, cookie: string, fetchImpl?: typeof fetch): Promise; export declare function refreshCookie(token: string, credManager: CredentialManager): Promise<{ user_id: string; team_id: string; user?: string; team?: string; } | null>; //# sourceMappingURL=ensure-auth.d.ts.map