import type { SearchReplaceDefinition } from './types'; import type { Caller, CollectionSchema, DataSourceDecorator, PaginatedFilter, SearchedField } from '@forestadmin/datasource-toolkit'; import { CollectionDecorator } from '@forestadmin/datasource-toolkit'; export default class SearchCollectionDecorator extends CollectionDecorator { dataSource: DataSourceDecorator; replacer: SearchReplaceDefinition; searchable: boolean; replaceSearch(replacer: SearchReplaceDefinition): void; private get handler(); private get fieldSelection(); disable(): void; refineSchema(subSchema: CollectionSchema): CollectionSchema; refineFilter(caller: Caller, filter?: PaginatedFilter): Promise; /** * Both the condition tree and the footprint `getSearchedFields` reports must come from here: * a path the search reads without appearing in the footprint is a column read unchecked. */ private getSearchableFields; private generateSearchFilter; private generatePlainSearchFilter; /** * Answers against `childCollection`, which is what the search actually reads — a field hidden by * the publication or renaming layers above is still searched. Returns `null` only when a handler * is installed: it chooses the fields, and the caller only supplies the text. */ getSearchedFields(search: string, extended: boolean): SearchedField[] | null; private getFields; } //# sourceMappingURL=collection.d.ts.map