import { Writable } from "stream"; import type { DataSource, DataSourceOptions, EntityTarget, FindOptionsWhere, ObjectLiteral } from "typeorm"; type KeyFunc = (obj: T) => FindOptionsWhere; export declare function getDataSource(ormConfig: DataSourceOptions): Promise; export declare function createDatabaseSink(dataSource: DataSource, entity: EntityTarget, keyFunc: KeyFunc, append?: boolean): Writable; export {};