import type { SchemaSource } from '@wix/bex-core'; import type { FieldsSourceProvider } from '../fieldsSourceProvider'; import { SchemaState } from './SchemaState'; /** * A schema source ready to attach to a table: the full config plus a * `setOnTable` that builds the SchemaState. Keeping `new SchemaState` here — not * in the table hook — keeps it out of the core table bundle; only consumers that * call `tableSchemaSource` pull it in. * * `schemaState` exposes the attached state so the import reads the same * live schema the table renders — import always matches the visible columns * (including fields it just created, or ones added via the field-management * panel), rather than a separate loaded copy. */ export type TableSchemaSource> = SchemaSource & FieldsSourceProvider & { readonly schemaState?: SchemaState; }; /** @deprecated Pass the source to a `@wix/patterns/schema` collection hook * instead — no wrapper needed. */ export declare const tableSchemaSource: (source: SchemaSource) => TableSchemaSource; //# sourceMappingURL=tableSchemaSource.d.ts.map