import { DashboardAccountClient, type DashboardTokens, DpopKey, GatewayClient, NylasV3Client } from '@nylas-labs/cli-kit'; import type { AuthState, ProjectState } from '../state/schema.js'; /** Mutable bag threaded through every step of one CLI run. */ export type StepContext = { project: ProjectState; auth: AuthState | null; dpop: DpopKey | null; dashboard: DashboardAccountClient | null; gateway: GatewayClient | null; /** Set once an API key is available (from pendingSecrets on resume). */ v3: NylasV3Client | null; }; export declare function createContext(project: ProjectState): Promise; export declare function tokens(ctx: StepContext): DashboardTokens; export declare function setAuth(ctx: StepContext, next: AuthState): void; export declare function requireDashboard(ctx: StepContext): DashboardAccountClient; export declare function requireGateway(ctx: StepContext): GatewayClient; export declare function requireV3(ctx: StepContext): NylasV3Client; //# sourceMappingURL=context.d.ts.map