Initial commit (by create-cloudflare CLI)

This commit is contained in:
Jonas_Jones 2023-09-12 00:20:38 +02:00
parent 8cb86120f1
commit fff961078a
1777 changed files with 1011798 additions and 0 deletions

View file

@ -0,0 +1,16 @@
/// <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;