export declare const systemClock: { now: typeof import("@bytecodealliance/preview2-shim/interfaces/wasi-clocks-wall-clock").now; /** * Query the resolution of the clock. * * WIT: * ``` * get-resolution: func() -> duration; * ``` * * @returns {bigint} The smallest distinguishable duration in nanoseconds. */ getResolution(): bigint; }; export declare const monotonicClock: { /** * Query the resolution of the clock. * * WIT: * ``` * get-resolution: func() -> duration; * ``` * * @returns {bigint} Duration of a clock tick in nanoseconds. */ getResolution(): bigint; /** * Waits until a specific mark (in nanoseconds) is reached * * WIT: * ``` * wait-until: async func(when: mark); * ``` * @async * @param {bigint} targetNs - The target mark in nanoseconds to wait until * @returns {Promise} A promise that resolves when the target mark is reached * @throws {TypeError} If targetNs is not a bigint */ waitUntil(targetNs: any): Promise; /** * Waits for a specified duration in nanoseconds * * WIT: * ``` * wait-for: async func(how-long: duration); * ``` * @async * @param {bigint} durationNs - The duration to wait in nanoseconds * @returns {Promise} A promise that resolves after the specified duration * @throws {TypeError} If durationNs is not a bigint */ waitFor(durationNs: any): Promise; now(): import("@bytecodealliance/preview2-shim/interfaces/wasi-clocks-monotonic-clock").Instant; resolution(): import("@bytecodealliance/preview2-shim/interfaces/wasi-clocks-monotonic-clock").Duration; };