import { DecryptKeystoreArgs } from "./types.js"; /** * Thread pool to decrypt keystores */ export declare class DecryptKeystoresThreadPool { private readonly signal; private pool; private tasks; private terminatePoolHandler; constructor(keystoreCount: number, signal: AbortSignal); /** * Add keystore to the task queue to be decrypted */ queue(args: DecryptKeystoreArgs, onDecrypted: (secretKeyBytes: Uint8Array) => void, onError: (e: Error) => void): void; /** * Resolves once all queued tasks are completed and terminates worker threads. * Errors during executing can be captured in `onError` handler for each task. */ completed(): Promise; /** * Cancel all pending tasks */ cancel(): void; } //# sourceMappingURL=threadPool.d.ts.map