import type { StandardError } from "../stub.js"; export interface McpContent { [x: string]: unknown; content: Array<{ type: "text"; text: string; }>; isError?: boolean; } export declare function okResponse(payload: unknown): McpContent; export declare function errorResponse(error: StandardError, extra?: Record): McpContent; export interface AuthRequiredBody { error?: { code?: string; message?: string; fixHint?: string; retryable?: boolean; }; userCode?: unknown; verificationUrl?: unknown; deviceCode?: unknown; expiresInSeconds?: unknown; pollIntervalSeconds?: unknown; tier?: unknown; meterRemaining?: unknown; } /** * Build the canonical `auth_required` tool response from a backend 402 body. * Shared by every account-gated tool (createSimulatorSession, * generateConnectionModule) so the device-code surface — userCode / * verificationUrl / deviceCode / poll timing — is identical everywhere. `extra` * carries tool-specific fields (e.g. createSimulatorSession's autoOpen/autoLink * status). */ export declare function surfaceAuthRequired(body: AuthRequiredBody, extra?: Record): McpContent; //# sourceMappingURL=response.d.ts.map