import type { EndpointInfo } from '@ydbjs/api/discovery';
import { type Channel, type ChannelCredentials, type ChannelOptions } from 'nice-grpc';
export interface Connection {
    readonly nodeId: bigint;
    readonly address: string;
    readonly channel: Channel;
    pessimizedUntil?: number;
    close(): void;
}
export declare class LazyConnection implements Connection {
    #private;
    pessimizedUntil?: number;
    constructor(endpoint: EndpointInfo, channelCredentials: ChannelCredentials, channelOptions?: ChannelOptions);
    get nodeId(): bigint;
    get address(): string;
    get channel(): Channel;
    close(): void;
}
//# sourceMappingURL=conn.d.ts.map