import { Pool, QueryResult } from 'pg';
import { Pagination } from '../../../api';
import { LatencyInsertParams, LatencyRow } from './types';
export interface LatencyCheckStorage {
    getMonitorChecks(params: GetMonitorLatencyChecksParams): Promise<LatencyRow[]>;
    insertLatencyCheck(params: LatencyInsertParams): Promise<LatencyRow>;
    createTable(): Promise<QueryResult>;
}
export declare class TimescaleLatencyCheckStorage implements LatencyCheckStorage {
    private postgresPool;
    constructor(postgresPool?: Pool);
    private queryPostgres;
    createTable: () => Promise<QueryResult>;
    getMonitorChecks: (params: GetMonitorLatencyChecksParams) => Promise<LatencyRow[]>;
    private getMonitorChecksQueryConfig;
    insertLatencyCheck: (params: LatencyInsertParams<import("../../../types").LatencyCheck>) => Promise<LatencyRow>;
    private getInsertQueryConfig;
}
declare type GetMonitorLatencyChecksParams = {
    monitorId: string;
    pagination: Pagination;
};
declare const timescaleLatencyCheckStorage: TimescaleLatencyCheckStorage;
export default timescaleLatencyCheckStorage;
