import { Field, FieldsSource, SourceState } from '@wix/bex-core'; import type { ToolbarCollectionState } from '../../state'; export interface SchemaStateParams { sourceState: SourceState; } /** * The collection-page side of a source: turns the loaded schema into a * source-neutral FieldsSource for the table, owns the field-management object * and the add/edit field modal, and builds the table columns from the fields. * The page-neutral holding (load, fields, field mutations) lives in the * composed core `SourceState`. */ export declare class SchemaState> { readonly sourceState: SourceState; /** The read contract the collection spine consumes — a plain adapter whose * getters read through to `sourceState`, so MobX tracks through it. Built * once: the spine keeps this exact instance. */ readonly fieldsSource: FieldsSource; toolbar?: ToolbarCollectionState; constructor(params: SchemaStateParams); /** Fields whose type maps to an auto filter in the toolbar. */ get filterableFields(): Field[]; /** Attaches this source to a table's toolbar via the shared wrapper. */ setOnTable(toolbar: ToolbarCollectionState): void; } //# sourceMappingURL=SchemaState.d.ts.map