hashion
Version:
25 lines (20 loc) • 631 B
TypeScript
export declare type HashCallback = (e: any, data: HashCallbackData) => void;
export declare type HashCallbackData = {
progress: number;
hash?: string;
time?: number;
};
export declare class Hashion {
hashCarrier: any;
hashionName: string;
constructor(plugin: any, options?: Record<string, any>);
computedHash({ file, chunkSize }: HashParameters, callback: (data: HashCallbackData) => void): {
promise: Promise<Required<HashCallbackData>>;
abort: () => void;
};
}
export declare type HashParameters = {
file: File;
chunkSize: number;
};
export { }