import type { Worker } from "node:worker_threads";
/**
 * Centralized worker cleanup utilities
 * Provides consistent cleanup patterns across the codebase
 */
export interface WorkerCleanupOptions {
    /** Whether to terminate the worker (default: true) */
    terminate?: boolean;
    /** Whether to remove all listeners (default: true) */
    removeListeners?: boolean;
    /** Whether to log cleanup errors (default: false) */
    logErrors?: boolean;
}
/**
 * Safely cleans up a worker with consistent error handling
 */
export declare function cleanupWorker(worker: Worker | null | undefined, options?: WorkerCleanupOptions): void;
//# sourceMappingURL=workerCleanup.d.ts.map