import type { Node as FigmaDocumentNode } from "@figma/rest-api-spec"; import type { MarkdownTableNode } from "../extractors/types.js"; /** * Detect if a node is a native Figma TABLE node. * TABLE nodes have a specific type and contain TABLE_CELL children. */ export declare function isTableNode(node: FigmaDocumentNode): boolean; /** * Convert a Figma TABLE node to a markdown table. * * TABLE nodes in Figma have a flat list of TABLE_CELL children. * We reconstruct the grid by grouping cells by their Y position (rows) * and sorting within each row by X position (columns). * * @param node - The TABLE node to convert * @returns MarkdownTableNode or null if conversion fails */ export declare function convertTableToMarkdown(node: FigmaDocumentNode): MarkdownTableNode | null; /** * Check if a node should be converted to markdown table. * Currently only handles native TABLE nodes. * * Note: We intentionally don't detect "table-like" FRAME structures * to avoid false positives. Only native TABLE nodes are converted. */ export declare function shouldConvertToMarkdown(node: FigmaDocumentNode): boolean; //# sourceMappingURL=table-to-markdown.d.ts.map