export declare function runin(path: string, func: () => Promise | void): Promise;