import type { Pool } from "mysql2/promise";
import type { iDatabaseRuntimeConfig, iRest } from "../types/ormInterfaces";
type iDatabaseSelectableConfig = {
    C6: any;
    databases?: Record<string, iDatabaseRuntimeConfig>;
    defaultDatabase?: string;
    mysqlPool?: Pool;
    postgresPool?: any;
    axios?: any;
    restURL?: string;
    withCredentials?: boolean;
};
export declare const extractDatabaseKeyFromRequest: (request: unknown) => string | undefined;
export declare const stripDatabaseKeyFromRequest: <T>(request: T) => T;
export declare const resolveDatabaseSelection: <T extends iDatabaseSelectableConfig>(baseConfig: T, request?: unknown) => {
    config: T;
    databaseKey?: string;
};
export declare const resolveRestConfigForRequest: (baseConfig: iRest<any, any, any>, request?: unknown) => {
    config: iRest<any, any, any>;
    databaseKey?: string;
};
export {};
