/** * Extracted parameters from a Figma design URL. * * @property {string} fileKey - Figma file identifier from URL path * @property {string} nodeId - Node identifier (colon format for Figma MCP) */ export interface FigmaParams { fileKey: string; nodeId: string; } /** * Parses a Figma URL to extract fileKey and nodeId. * * Supported URL formats: * - https://figma.com/design/:fileKey/:fileName?node-id=1-2 * - https://www.figma.com/design/:fileKey/:fileName?node-id=1-2 * - https://figma.com/file/:fileKey/:fileName?node-id=1-2 * * @param figmaUrl - The Figma URL to parse * @returns Object with fileKey and nodeId * @throws {Error} When URL is not from figma.com, fileKey cannot be extracted, or node-id is missing * @throws {TypeError} When URL format is invalid */ export declare function parseFigmaUrl(figmaUrl: string): FigmaParams;