import { type ServiceName } from "../auth/scopes.js"; import { type StoredTokens } from "./tokens.js"; export interface ProbeResult { service: ServiceName; status: "ok" | "warn" | "fail"; detail: string; } export interface ProbeContext { email: string; tokens: StoredTokens; accessToken: string; } /** * Presence checks for each ADDITIONAL_SCOPES entry — scopes layered on top of * a service's representative scope that are NOT implied by it. These are a * cheap token-string check (no API call). Each result is keyed to its parent * service so it groups under that service and honors `--check runtime.`. * A missing one is a `fail` prompting re-auth — surfacing it here instead of * only when the dependent command is run. */ export declare function probeAdditionalScopes(ctx: ProbeContext): ProbeResult[]; /** * Run all service probes for a single account in parallel (where they're * independent) and return results keyed by service name. */ export declare function probeAccount(email: string): Promise<{ service: ServiceName; status: "ok" | "warn" | "fail"; detail: string; }[]>;