import type { ForkLeakVerdict } from './vitest-fork-leak-detection.mts'; import type { PoolMetrics } from './vitest-fork-leak-handshake-samples.mts'; type PoolSocketHandles = { active: ReadonlySet; owned: ReadonlySet; }; export declare function getRegisteredPoolMetrics(): PoolMetrics | null; export declare function getRegisteredPoolSocketHandles(): PoolSocketHandles | null; export type ForkLeakDiagnosticsOptions = { /** Text printed before the pool metrics line. Defaults to `pool metrics:`. */ poolMetricsLabel?: string; }; /** * One-line summary, or a multi-line report when resource counts are supplied. The multi-line * report ends with a pool metrics line whose label comes from `options.poolMetricsLabel`. */ export declare function formatForkLeakDiagnostics(verdict: ForkLeakVerdict): string; export declare function formatForkLeakDiagnostics(verdict: ForkLeakVerdict, counts: ReadonlyMap, poolMetrics?: PoolMetrics | null, options?: ForkLeakDiagnosticsOptions): string; export {};