import type { Piscina } from 'piscina'; /** * Compose a user-provided abort signal with a timeout watchdog and run * the task on the given piscina pool. The rejection shape depends on * which source fired: * * - watchdog timeout → Error(formatTimeoutMessage(ms)) * - user signal abort → the user's `signal.reason` if it's an Error * (otherwise piscina's AbortError, whose `cause` * is the reason) * - other failure → the original error * * `taskTimeoutMs <= 0` disables the watchdog (the user signal is still * forwarded). Reshaping the timeout case avoids surfacing piscina's * generic AbortError when a truncated task lands in logs. */ export declare function runWithTimeoutAndSignal(pool: Piscina, task: unknown, userSignal: AbortSignal | undefined, taskTimeoutMs: number, formatTimeoutMessage: (ms: number) => string): Promise; //# sourceMappingURL=piscinaRunWithTimeout.d.ts.map