import { DatasourceOptions } from './datasource.options';
import { Driver } from './driver/driver';
import { QueryResult } from './driver/query-result';
import { QueryRunnerInterface } from './driver/query-runner.interface';
export declare class DatasourceService {
    readonly name: string;
    readonly options: DatasourceOptions;
    isInitialized: boolean;
    driver: Driver;
    constructor(options: DatasourceOptions);
    get version(): string;
    initialize(): Promise<this>;
    /**
     * Executes raw SQL query and returns raw database results.
     */
    query(query: string, testRun?: boolean, parameters?: Array<unknown>): Promise<QueryResult | null | {
        error: string;
    }>;
    createQueryRunner(): QueryRunnerInterface;
}
