import {Signal} from './_signal.js'; /** * A signal that stores a context value of type T. * * This signal extends the basic {@link Signal} class and adds features specific to context values. * * @template T - The type of the context value. */ export declare class ContextSignal extends Signal { /** * Creates a new ContextSignal instance. * * @param {string} name - The name of the signal. * @param {false | 'AnimationFrame' | 'IdleCallback' | number} [debounce=false] - The debounce configuration. */ constructor(name: string, debounce?: false | 'AnimationFrame' | 'IdleCallback' | number); /** * Requires the current value of the signal, waiting for it to be available if necessary. * * @return {Promise} A promise that resolves with the current value of the signal. */ requireValue(): Promise; /** * Applies a function to the current value of the signal and sets the result as the new value. * * @param {(value: T | undefined) => T} func - The function to apply to the current value. * @return {T} The new value of the signal. */ functionalValue(func: (value: T | undefined) => T): T; /** * Gets the current value of the signal. * * @return {T | undefined} The current value of the signal, or undefined if it has not been set or has expired. */ get value(): T | undefined; /** * Sets a new value for the signal and notifies any subscribers. * * @param {T} value - The new value to set. */ set value(value: T); /** * Clears the cache of the signal. */ expire(): void; /** * Returns a promise that resolves when the signal changes. * * @return {Promise} A promise that resolves with the new value of the signal when it changes. */ untilChange(): Promise; /** * Renotifies any subscribers with the current value of the signal. */ renotify(): void; } //# sourceMappingURL=context.d.ts.map