/** * [WHO]: registerFigmaMcpOAuthProvider() * [FROM]: Depends on ai, node:fs, node:http, node:os, node:path, node:child_process * [TO]: Consumed by core/runtime/sdk.ts * [HERE]: core/mcp/figma-auth.ts - Figma OAuth integration for MCP servers */ import { type OAuthCredentials } from "@catui/ai/oauth"; export type FigmaOAuthCredentials = OAuthCredentials & { clientId: string; clientSecret?: string; tokenEndpointAuthMethod?: "client_secret_basic" | "client_secret_post" | "none"; scope?: string; source?: string; }; export type FigmaImportableSession = { source: string; expiresAt: number; }; export declare function findImportableFigmaOAuthSession(): FigmaImportableSession | undefined; export declare function refreshFigmaOAuthCredentials(credentials: FigmaOAuthCredentials): Promise; export declare function registerFigmaMcpOAuthProvider(): void;