import { type TimerObservable } from '../types/index.mjs'; /** * Creates an observable that emits 0 after a specified delay and then completes. * * @param milliSeconds - The delay in milliseconds before emission * @param startManually - If true, waits for manual start (default: false) * @returns An observable that emits after delay * * @example * ```ts * // Timeline: * // * // Time(ms) 0 ... 1000 * // delayed$ X (emits and completes) * // * // Explanation: * // - timer emits once after the specified delay, then completes * // - Useful for delayed actions or timeouts * * const delayed$ = timer(100); * * const valueHistory: number[] = []; * * await new Promise((resolve) => { * delayed$.subscribe( * () => { * valueHistory.push(1); * }, * () => { * resolve(); * }, * ); * }); * * assert.deepStrictEqual(valueHistory, [1]); * ``` */ export declare const timer: (milliSeconds: number, options?: Readonly<{ startManually?: boolean; }>) => TimerObservable; //# sourceMappingURL=timer.d.mts.map