export interface RemoteMetricRow {
    id: number;
    connection_id: string;
    connection_name: string;
    process_name: string;
    pm_id: number;
    timestamp: number;
    cpu: number;
    memory_bytes: number;
    memory_mb: number;
}
declare class RemoteMetricsDB {
    private db;
    constructor();
    private initSchema;
    private purgeOld;
    insert(row: Omit<RemoteMetricRow, 'id'>): void;
    insertBatch(rows: Omit<RemoteMetricRow, 'id'>[]): void;
    getConnectionsWithData(): {
        id: string;
        name: string;
    }[];
    getProcessNames(connectionId: string): string[];
    getMetrics(connectionId: string, processName: string, from: number, to: number, maxPoints?: number): RemoteMetricRow[];
    getLatestSnapshot(connectionId: string): RemoteMetricRow[];
    close(): void;
}
export declare const remoteMetricsDB: RemoteMetricsDB;
export {};
