import http from 'http'; import { TestServer, TestAgent, ParsedMessage } from './types'; import { Profiler, RequestFilter } from '../src/types'; export declare function makeTestAgent(port: number): Promise; export declare function makeTcpTestAgent(port?: number): Promise; export declare function makeUdpTestAgent(port?: number): Promise; declare function sendHello(req: http.IncomingMessage, res: http.ServerResponse): void; export declare function makeTestServer(profiler: () => Profiler | null, port?: number | undefined, handler?: typeof sendHello, requestFilters?: () => RequestFilter[] | null): Promise; export type Stoppable = { stop(): Promise; }; export declare function getTestPort(): number; export declare function runDependencyTest(dependencies: ((p: Profiler) => Promise)[], f: (p: Profiler, done: () => void) => void, options?: { concurrentProfileLimit?: number; }): Promise; export declare function runProfilerTest(dependencies: Promise[], f: (done: () => void) => void): Promise; export declare function describeSkipCI(label: string, f: () => void): void; export declare function describeSkipCIOn(skippedPlatforms: NodeJS.Platform[], label: string, f: (this: Mocha.Suite) => void): void; export declare function describeIf(enabled: boolean, label: string, f: () => void): void; type MochaF = (this: Mocha.Suite) => void; export declare function describeProfilerSpecs(label: string, hooks: MochaF, f?: MochaF): void; export declare namespace describeProfilerSpecs { var skipCI: (label: string, hooks: MochaF, f?: MochaF) => void; var skipCIOn: (skippedPlatforms: NodeJS.Platform[], label: string, hooks: MochaF, f?: MochaF) => void; } export {};