/** * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { Logger } from 'opr-core'; /** A launcher for a local, empty instance of Postgres for testing. */ export interface PostgresTestingLauncherOptions { postgresBinaryPath?: string; postgresInitDbPath?: string; postgresPsqlPath?: string; dbPath?: string; postgresPort?: number; dbName?: string; logger?: Logger; } export declare class PostgresTestingLauncher { private readonly postgresBinaryPath?; private readonly postgresInitDbPath?; private readonly postgresPsqlPath?; private readonly requestedPostgresPort?; private readonly dbPath; private readonly dbName; private isShutDown; private isShuttingDown; private postgresProcess?; private postgresActivePort?; private stdoutData; private stderrData; private logger; constructor(options?: PostgresTestingLauncherOptions); private findPostgres; getPort(): number | undefined; isPostgresAvailable(): boolean; private startPostgres; getStdoutLog(): string; getStderrLog(): string; private initDb; start(): Promise; shutdown(): void; } //# sourceMappingURL=postgrestestinglauncher.d.ts.map