django-vue3-admin-web/node_modules/ts-md5/dist/cjs/parallel_hasher.d.ts
2025-10-20 21:21:14 +08:00

23 lines
639 B
TypeScript

export interface WorkerOptions {
credentials?: 'omit' | 'same-origin' | 'include';
name?: string;
type?: 'classic' | 'module';
}
export declare class ParallelHasher {
private _queue;
private _hashWorker;
private _processing?;
private _ready;
constructor(workerUri: string, workerOptions?: WorkerOptions);
/**
* Hash a blob of data in the worker
* @param blob Data to hash
* @returns Promise of the Hashed result
*/
hash(blob: any): Promise<unknown>;
/** Terminate any existing hash requests */
terminate(): void;
private _processNext;
private _recievedMessage;
}