/** * **Scaffold generators** — produce ready-to-paste artefacts on request: * sample column definitions, a matching demo dataset, and the full theme * variable catalogue. * * These are deterministic and local. A language model asked to invent a * dataset produces plausible-looking but unusable output (duplicate ids, * malformed dates, values that contradict their column type); generating here * guarantees the result actually loads into the grid, and costs no tokens. * * Output is Markdown with fenced code blocks, so the chat panel renders it with * a copy button. * * @packageDocumentation */ import type { ColumnDef } from '../../types/column.types'; import type { ThemeVariableRegistryReader } from '../../types/theme-ai.types'; /** Generates column definitions, datasets, and the theme catalogue. */ export declare class ScaffoldGenerator { /** * Column definitions as a copy-pasteable TypeScript snippet. * * @param count - How many columns to emit (clamped to the sample schema's size). */ generateColumns(count?: number): string; /** * A dataset matching {@link generateColumns}, as JSON. * * Values are index-derived rather than random so the same request always * produces the same data — which makes generated examples reproducible and * diffable. */ generateDataset(rowCount?: number): string; /** Columns and dataset together, plus the call that mounts them. */ generateFullExample(rowCount?: number): string; /** * The complete themeable variable catalogue, grouped by category, as CSS. * * Emitted as a `.pg-grid { … }` block rather than a bare list so it is * directly usable: paste it into a stylesheet and start editing values. */ generateThemeVariables(registry: ThemeVariableRegistryReader): string; /** A typed server-side datasource implementation. */ generateServerDatasource(): string; /** Export wiring for CSV and Excel. */ generateExportCode(): string; /** Column validators for common rules. */ generateValidationRules(columns?: readonly ColumnDef[]): string; } //# sourceMappingURL=scaffold-generator.d.ts.map