export declare type MethodWithData = (data: any) => () => Promise;