import { DataSource, DataSourceTablesConfig } from "@kottster/common"; import { DataSourceAdapter } from "../models/dataSourceAdapter.model"; interface CreateDataSource { type: DataSource['type']; name: DataSource['name']; init: () => T; tablesConfig: DataSourceTablesConfig; databaseSchemas?: DataSource['databaseSchemas']; } /** * Create a data source * @param version - The version of the data source * @param type - The type of the data source * @param name - The name of the context property, e.g. 'knex' * @param databaseSchemas - The available database schemas * @param init - The function to initialize the data source adapter * @returns The initialized data source */ export declare function createDataSource({ type, name, databaseSchemas, tablesConfig, init }: CreateDataSource): DataSource; export {};