import { t as ComponentProps } from "./components-U6HOf5GS.cjs"; import { n as MarkdownTableColumnContextInterface } from "./markdown-table-BxfTr3lV.cjs"; //#region src/markdown/components/markdown-table.d.ts interface MarkdownTableProps = Record> extends ComponentProps { /** * An optional array of column definitions. If not provided, columns will be inferred from the keys of the first data object. * * @remarks * This prop allows you to explicitly define the columns of the markdown table, including their order, alignment, and width. If this prop is not provided, the component will attempt to infer the columns from the keys of the first object in the `data` array. Each column definition should include the `name` of the column (which corresponds to a key in the data objects), an optional `align` property to specify text alignment (left, right, or center), and an optional `width` property to specify the width of the column in characters. */ columns?: MarkdownTableColumnContextInterface[]; /** * An array of data objects to be rendered in the markdown table. Each object should have keys corresponding to the column names. * * @remarks * This prop is required and should contain an array of objects representing the rows of the markdown table. Each object should have keys that correspond to the `name` properties defined in the `columns` prop (or inferred from the first object if `columns` is not provided). The values of these keys will be rendered in the respective columns of the table. If the `data` array is empty, the component will render nothing. */ data: T[]; } /** * Component that provides a context for rendering markdown tables. */ declare function MarkdownTable = Record>(props: MarkdownTableProps): import("@alloy-js/core").Children; type MarkdownTableColumnProps = ComponentProps & Partial> & Required> & { width?: number; }; /** * Component that provides a context for rendering markdown tables. */ declare function MarkdownTableColumn(props: MarkdownTableColumnProps): import("@alloy-js/core").Children; /** * Component that provides a context for rendering markdown tables. */ declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): import("@alloy-js/core").Children; //#endregion export { MarkdownTableProps as a, MarkdownTableColumnProps as i, MarkdownTableColumn as n, MarkdownTableColumnHeader as r, MarkdownTable as t }; //# sourceMappingURL=markdown-table-Ztb47XWs.d.cts.map