import { IInternalHash } from '../base/index' ; export interface INativeReader { free ? ( ) : void ; fill ( target ) : void ; set_position ( position ) : void ; } export interface INativeHash extends IInternalHash < INativeReader > { new ( hashKey ? , context ? ) : INativeHash ; } export interface INativeModule { Hasher : INativeHash ; hash ( input , length ) : Buffer ; } const native = require ( '../native.node' ) ; export default native ;