import type { OAuthClientInformationMixed } from "@modelcontextprotocol/sdk/shared/auth.js"; import { type H3Event } from "h3"; import { type McpOAuthDiscoveryState } from "./oauth-client.js"; import { type RemoteMcpScope } from "./remote-store.js"; export interface McpOAuthFlow { name: string; url: string; description?: string; scope: RemoteMcpScope; scopeId: string; owner: string; orgId?: string; redirectUri: string; state: string; codeVerifier: string; clientInformation: OAuthClientInformationMixed; discoveryState?: McpOAuthDiscoveryState; returnUrl?: string; expiresAt: number; } export interface McpOAuthRoutesOptions { reconfigure: () => Promise; } export declare function redirectWithStagedCookies(event: H3Event, location: string): Response; export declare function mountMcpOAuthRoutes(nitroApp: any, options: McpOAuthRoutesOptions): void; export declare function setMcpOAuthFlowCookie(event: H3Event, flow: McpOAuthFlow, secure: boolean): void; export declare function readMcpOAuthFlowCookie(event: H3Event): McpOAuthFlow | null; export declare function clearMcpOAuthFlowCookies(event: H3Event): void; export declare function isValidMcpOAuthFlow(flow: McpOAuthFlow, email: string, orgId: string | undefined, state: string): boolean; //# sourceMappingURL=oauth-routes.d.ts.map