import type { WriteDefinition } from './types'; import type { Caller, CollectionSchema, DataSourceDecorator, Filter, RecordData } from '@forestadmin/datasource-toolkit'; import { CollectionDecorator } from '@forestadmin/datasource-toolkit'; export default class WriteReplacerCollectionDecorator extends CollectionDecorator { private handlers; readonly dataSource: DataSourceDecorator; replaceFieldWriting(fieldName: string, definition: WriteDefinition): void; protected refineSchema(childSchema: CollectionSchema): CollectionSchema; create(caller: Caller, records: RecordData[]): Promise; update(caller: Caller, filter: Filter, patch: RecordData): Promise; /** * Takes a patch and recursively applies all rewriting rules to it. */ private rewritePatch; private rewriteKey; /** * Recursively merge patches into a single one ensuring that there is no conflict. */ private deepMerge; private isObject; } //# sourceMappingURL=collection.d.ts.map