import { IBaseComponent, IConfigComponent, ILoggerComponent } from '@well-known-components/interfaces'; import { Options, IPgComponent, IMetricsComponent } from './types'; export * from './types'; export * from './metrics'; /** * Query a Postgres (https://www.postgresql.org) database with ease. * It uses a pool behind the scenes and will try to gracefully close it after finishing the connection. * @public */ export declare function createPgComponent(components: createPgComponent.NeededComponents, options?: Options): Promise; /** * @public */ export declare namespace createPgComponent { type NeededComponents = { logs: ILoggerComponent; config: IConfigComponent; metrics?: IMetricsComponent; }; } //# sourceMappingURL=index.d.ts.map