import type { Logger } from 'global-logger-factory';
/**
 * Wraps the callback for {@link setInterval} so errors get caught and logged.
 * Parameters are identical to the {@link setInterval} parameters starting from the 3rd argument.
 * The logger and message will be used when the callback throws an error.
 * Supports asynchronous callback functions.
 */
export declare function setSafeInterval<TArgs>(logger: Logger, message: string, callback: (...cbArgs: TArgs[]) => Promise<void> | void, ms?: number, ...args: TArgs[]): NodeJS.Timeout;
