/// <reference types="node" />
import { Buffer } from 'buffer';
import { IRsn, TProxy } from '../../interfaces';
export interface IAddProxyResult {
    proxy: TProxy;
    messageType2Buf: Buffer;
    isNewProxy?: boolean;
}
export declare class ProxyCache {
    clean(): void;
    remove(id: string, byTimeout?: boolean): void;
    addOrReplace(rsn: IRsn, id: string, messageType1: Buffer): Promise<string>;
    getProxy<T = TProxy>(id: string): T | undefined;
    changeId(oldId: string, newId: string): void;
    info(from?: string): void;
}
export declare const proxyCache: ProxyCache;
//# sourceMappingURL=ProxyCache.d.ts.map