mirror of
https://github.com/JonasunderscoreJones/api-worker.git
synced 2025-10-23 18:39:19 +02:00
16 lines
508 B
TypeScript
16 lines
508 B
TypeScript
/// <reference types="node" />
|
|
import { IInternalHash } from '../base/index';
|
|
export interface INativeReader {
|
|
free?(): void;
|
|
fill(target: Uint8Array): void;
|
|
set_position(position: Buffer): void;
|
|
}
|
|
export interface INativeHash extends IInternalHash<INativeReader> {
|
|
new (hashKey?: Buffer, context?: string): INativeHash;
|
|
}
|
|
export interface INativeModule {
|
|
Hasher: INativeHash;
|
|
hash(input: Buffer, length: number): Buffer;
|
|
}
|
|
declare const native: INativeModule;
|
|
export default native;
|