import type { FiltersMap, OptionalFiltersMap, SchemaSource } from '@wix/bex-core'; import type { LayoutSwitchState, TableLayoutConfig, GridLayoutConfig, SpreadsheetLayoutConfig } from '../state/LayoutSwitchState'; import type { EditableTableMutationHandlers } from '../state/EditableTable'; import { type SchemaCollectionOptions } from './schemaCollectionOptions'; export type SchemaLayoutSwitchCollectionOptions = SchemaCollectionOptions & { table?: TableLayoutConfig; grid?: GridLayoutConfig; spreadsheet?: Omit, 'createOptimisticActions' | 'mutations'> & { /** Row write handlers. Default: derived from the source's backend. */ mutations?: EditableTableMutationHandlers; }; }; /** One collection and one toolbar driven by a source, shared by every enabled * layout — the source attaches before any layout mounts, so a page opening * in grid view has its fields and filters too. */ export declare function useLayoutSwitchCollection(source: SchemaSource, options?: SchemaLayoutSwitchCollectionOptions): LayoutSwitchState; //# sourceMappingURL=useLayoutSwitchCollection.d.ts.map