/** * The MIT License (MIT) * * Copyright (c) 2014 object-hash contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ export type ObjectHashAlgorithm = "SHA-1" | "SHA-256" | "SHA-384" | "SHA-512"; export type ObjectHashOptions = { algorithm?: ObjectHashAlgorithm; }; export declare function objectHash(obj: T, options?: ObjectHashOptions): Promise; export declare function typeHasher(options: any, stream: any, context?: Array): { readonly dispatch: (value: any) => string; readonly _object: (object: Record) => string | void; readonly _array: (arr: Array, unordered?: boolean) => any; readonly _date: (date: Date) => any; readonly _symbol: (sym: Symbol) => any; readonly _error: (err: Error) => any; readonly _boolean: (bool: boolean) => any; readonly _string: (string: string) => void; readonly _function: (fn: Function) => void; readonly _number: (number: number) => any; readonly _xml: (xml: string) => any; readonly _null: () => any; readonly _undefined: () => any; readonly _regexp: (regex: RegExp) => any; readonly _uint8array: (arr: Array) => string; readonly _uint8clampedarray: (arr: Uint8ClampedArray) => string; readonly _int8array: (arr: Int8Array) => string; readonly _uint16array: (arr: Uint16Array) => string; readonly _int16array: (arr: Int16Array) => string; readonly _uint32array: (arr: Uint32Array) => string; readonly _int32array: (arr: Int32Array) => string; readonly _float32array: (arr: Float32Array) => string; readonly _float64array: (arr: Float64Array) => string; readonly _arraybuffer: (arr: ArrayBuffer) => string; readonly _url: (url: URL) => any; readonly _map: (map: Map) => any; readonly _set: (set: Set) => any; readonly _file: (file: File) => string; readonly _blob: () => never; readonly _domwindow: () => any; readonly _bigint: (number: BigInt) => any; readonly _process: () => any; readonly _timer: () => any; readonly _pipe: () => any; readonly _tcp: () => any; readonly _udp: () => any; readonly _tty: () => any; readonly _statwatcher: () => any; readonly _securecontext: () => any; readonly _connection: () => any; readonly _zlib: () => any; readonly _context: () => any; readonly _nodescript: () => any; readonly _httpparser: () => any; readonly _dataview: () => any; readonly _signal: () => any; readonly _fsevent: () => any; readonly _tlswrap: () => any; };