import type { ProcessContext } from "../threading/process-context"; export declare function addDrainListener(cb: () => void): () => void; export declare function notifyDrain(): void; export declare function ref(): void; export declare function unref(): void; export declare function getRefCount(): number; export declare function setRefCount(n: number): void; export declare function resetRefCount(): void; export declare function refCtx(ctx: ProcessContext): void; export declare function unrefCtx(ctx: ProcessContext): void; export declare function getRefCountCtx(ctx: ProcessContext): number; export declare function addDrainListenerCtx(ctx: ProcessContext, cb: () => void): () => void;