import type http2 from "node:http2";
import { Http2SessionManager } from "@connectrpc/connect-node";
export declare const isBunRuntime: boolean;
export declare const KEEPALIVE_PING_OPTIONS: {
    pingIntervalMs: number;
    pingTimeoutMs: number;
};
export declare const DATA_PLANE_SESSION_OPTIONS: {
    maxSessionMemory: number;
    settings?: {
        initialWindowSize: number;
    } | undefined;
};
export declare function deferDestroyUntilDrained(stream: http2.ClientHttp2Stream): void;
export declare function failCloseWithoutResponse(stream: http2.ClientHttp2Stream): void;
export declare class DrainingHttp2SessionManager extends Http2SessionManager {
    private readonly drain;
    private readonly enlargeWindow;
    private readonly configuredSessions;
    constructor(url: URL | string, pingOptions?: ConstructorParameters<typeof Http2SessionManager>[1], http2SessionOptions?: ConstructorParameters<typeof Http2SessionManager>[2], drain?: boolean, enlargeWindow?: boolean);
    request(method: string, path: string, headers: http2.OutgoingHttpHeaders, options: Omit<http2.ClientSessionRequestOptions, "signal">): Promise<http2.ClientHttp2Stream>;
}
