murmurhash3-ts
Version:
MurmurHash3 in TypeScript
24 lines • 1.39 kB
TypeScript
import { U32, X64Hash128State, X86Hash32State, X86Hash128State } from "./types.js";
declare const strToBuf: (input?: string | undefined) => Uint8Array;
declare function bufToHex(buf?: Uint8Array): string;
declare function x86hash32(buf?: Uint8Array | string, state?: U32 | X86Hash32State, finalize?: true): U32;
declare function x86hash32(buf: Uint8Array | string, state?: U32 | X86Hash32State, finalize?: false): X86Hash32State;
declare function x86hash128(buf?: Uint8Array, state?: U32 | X86Hash128State, finalize?: true): Uint8Array;
declare function x86hash128(buf: string, state?: U32 | X86Hash128State, finalize?: true): string;
declare function x86hash128(buf: Uint8Array | string, state?: U32 | X86Hash128State, finalize?: false): X86Hash128State;
declare function x64hash128(buf?: Uint8Array, state?: U32 | X64Hash128State, finalize?: true): Uint8Array;
declare function x64hash128(buf: string, state?: U32 | X64Hash128State, finalize?: true): string;
declare function x64hash128(buf: Uint8Array | string, state?: U32 | X64Hash128State, finalize?: false): X64Hash128State;
declare const murmurhash: {
x86: {
hash32: typeof x86hash32;
hash128: typeof x86hash128;
};
x64: {
hash128: typeof x64hash128;
};
};
export { bufToHex, strToBuf, murmurhash };
export default murmurhash;
export type * from "./types.js";
//# sourceMappingURL=index.d.ts.map