///
///
///
import * as http2 from "http2";
import * as http from "http";
import * as https from "https";
import type { UniversalClientFn } from "@bufbuild/connect/protocol";
/**
* Before each test, spin up the given server, and tear it down again after the
* test.
* The teardown will wait for all connections to the server to be closed.
* The server is accessible via the getUrl method of the returned object, or
*/
export declare function useNodeServer(createServer: () => http.Server | https.Server | http2.Http2Server | http2.Http2SecureServer): {
getClient(): UniversalClientFn;
getUrl(): string;
};