import { SleepOptions } from './shared';

declare function sleep<T = any>(
    timeout: number,
    options: SleepOptions = {},
): Promise<T> & ((value: T) => T);

export default sleep;

import { SleepOptions } from './shared';

declare function sleep<T = any>(
    timeout: number,
    options?: SleepOptions,
): Promise<T> & ((value: T) => T);

export default sleep;

Fix typings in esm file
Fix typings in esm file
