UNPKG

fs-extender

Version:
37 lines (36 loc) 1.52 kB
/// <reference types="node" /> export declare type CompareOptionsByte = { /** Dereference links, default is false */ dereference?: boolean; /** Size to use when comparing files, default is 8192 */ chunkSize?: number; /** If true will ignore error's when trying to compare a path that is not a directory, default: false */ ignoreError?: boolean; }; export declare type CompareOptionsHash = { /** Type of hash to use for compare, default is 'sha512' */ hash?: string; /** Type of encoding to use for compare, default is 'hex' */ encoding?: BufferEncoding; /** Dereference links, default is false */ dereference?: boolean; /** If true will ignore error's when trying to compare a path that is not a directory, default: false */ ignoreError?: boolean; }; /** @internal */ export declare type _CompareOptionsInternal = { /** Dereference links, default is false */ dereference: boolean; /** Type of hash to use for compare, default is 'sha512' */ hash: string; /** Type of encoding to use for compare, default is 'hex' */ encoding: BufferEncoding; /** Size to use when comparing files, default is 8192 */ chunkSize: number; /** If true will ignore error's when trying to compare a path that is not a directory, default: false */ ignoreError: boolean; }; /** @internal */ export declare function getOptions(opt: unknown): _CompareOptionsInternal; /** @internal */ export declare function makeCallback(cb: unknown): CallableFunction;