export type SlackScopeDiagnosticsStatus = "not_checked" | "pending" | "healthy" | "drift" | "unavailable"; export interface SlackScopeProbeResult { key: string; surface: "files" | "bookmarks" | "pins"; method: string; expectedScopes: string[]; status: "ok" | "missing" | "unavailable"; missingScopes: string[]; error?: string; neededScopes?: string[]; providedScopes?: string[]; } export interface SlackScopeDiagnostics { status: SlackScopeDiagnosticsStatus; checkedAt: string | null; summary: string; surfaces: Array<"files" | "bookmarks" | "pins">; missingScopes: string[]; results: SlackScopeProbeResult[]; error?: string; } export interface DetectSlackScopeDiagnosticsOptions { token: string; fetchImpl?: typeof fetch; now?: () => string; } export declare function createUncheckedSlackScopeDiagnostics(): SlackScopeDiagnostics; export declare function createPendingSlackScopeDiagnostics(): SlackScopeDiagnostics; export declare function detectSlackScopeDiagnostics(options: DetectSlackScopeDiagnosticsOptions): Promise; export declare function formatSlackScopeDiagnosticsStatus(diagnostics: SlackScopeDiagnostics): string; export declare function buildSlackScopeDriftWarning(diagnostics: SlackScopeDiagnostics): string | null;