/// <reference types="node" />
import * as IlpPacket from 'ilp-packet';
import { Connection, BuildConnectionOpts } from './connection';
interface ConnectionEvent {
    (connection: Connection): void;
}
declare type ConnectionOptions = Omit<BuildConnectionOpts, 'sharedSecret'>;
export declare class ServerConnectionPool {
    private serverSecret;
    private connectionOpts;
    private onConnection;
    private activeConnections;
    private pendingConnections;
    constructor(serverSecret: Buffer, connectionOpts: ConnectionOptions, onConnection: ConnectionEvent);
    close(): Promise<void>;
    getServerAccount(): string;
    getAssetScale(): number;
    getAssetCode(): string;
    getConnection(id: string, prepare: IlpPacket.IlpPrepare): Promise<Connection>;
    private getSharedSecret;
}
export {};
