import { f as Computed } from "../children-s3nFjpLA.mjs"; //#region src/utilities/interval.d.ts type IntervalResult = { timestamp: Computed; pending: Computed; start(): void; stop(): void; reset(): void; } & Disposable; type Fn = () => void; type Delay = number | (() => number); /** * Pausable `setInterval` wrapper. Starts running immediately on creation. * * @example * ```ts * import { createInterval } from "elements-kit/utilities/interval"; * * // Reactive clock — updates a signal every second * const { timestamp, stop } = createInterval(1000); * effect(() => console.log(new Date(timestamp()))); * * // With a callback * const beat = createInterval(() => beatCount(beatCount() + 1), 500); * beat.stop(); * ``` */ declare function createInterval(delay: Delay): IntervalResult; declare function createInterval(callback: Fn, delay: Delay): IntervalResult; //#endregion export { createInterval };