export declare type CallbackFunction = ((err: null, val: T) => void) | ((err: Error) => void);