/** * Track the execution of a thunk with appropriate I/O handling. * Errors thrown by the thunk are re-thrown, if you want them logged see {@link tryTrack}. */ export declare function track(label: string, thunk: () => T): T; /** * Track the settlement of a promise with appropriate I/O handling. * Rejections are re-thrown, if you want them logged see {@link tryTrack}. */ export declare function track(label: string, promise: Promise): Promise; /** * Track the execution of a thunk with appropriate I/O handling. * Errors thrown by the thunk are logged, if you want them rethrown see {@link track}. */ export declare function tryTrack(label: string, thunk: () => T): T | null; /** * Track the settlement of a promise with appropriate I/O handling. * Rejections are logged, if you want them thrown see {@link track}. */ export declare function tryTrack(label: string, promise: Promise): Promise;