import { Knex } from 'knex'; import { Config } from './Typings.js'; /** * Runs a function with a temporary database context. * * @export * @template T * @param {Config} config The config to create the database. * @param {(d: Knex) => T} func The function to run. * @returns {T} */ export declare function createAndRun(config: Config, func: (d: Knex) => Promise): Promise;