*/
static restore (id: string): Promise<Wallet>
get id (): string
+ get safe (): WorkerQueue
get type (): WalletType
/** Set when calling `create()` and self-destructs after the first read. */
get mnemonic (): string | undefined
* Processes a queue of tasks using Web Workers.
*/
export declare class WorkerQueue {
+ #private
static get instances (): WorkerQueue[]
/**
* Creates a Web Worker from a stringified script.
*
* @param {string} worker - Stringified worker class body
- * @param {number} [count=1] - Integer between 1 and CPU thread count shared among all Pools
*/
constructor (worker: string)
- assign<T extends Data> (data: NamedData): Promise<NamedData<T>>
prioritize<T extends Data> (data: NamedData): Promise<NamedData<T>>
+ request<T extends Data> (data: NamedData): Promise<NamedData<T>>
terminate (): void
}
-
-export declare const PasskeyWorker: WorkerQueue