import { DirectusBaseType, WithSyncIdAndWithoutId } from './interfaces'; import { CollectionHooks, ConfigService } from '../../config'; import { MigrationClient } from '../../migration-client'; export declare abstract class DataLoader { protected readonly filePath: string; protected readonly migrationClient: MigrationClient; protected readonly hooks: CollectionHooks; protected readonly config: ConfigService; constructor(filePath: string, migrationClient: MigrationClient, hooks: CollectionHooks, config: ConfigService); /** * Returns the source data from the dump file, using readFileSync * and passes it through the data transformer. */ getSourceData(): Promise[]>; /** * Save the data to the dump file. The data is passed through the data transformer. */ saveData(data: WithSyncIdAndWithoutId[]): Promise; /** * Returns a function to sort the data before saving it. */ protected getSortFunction(): (a: WithSyncIdAndWithoutId, b: WithSyncIdAndWithoutId) => number; }