import type { Computed, WritableComputed, ComputedGetter, WritableComputedOptions } from './types'; /** * Creates a computed signal that lazily derives a value from other reactive sources. * * Performance characteristics: * - Lazy: Only computes when accessed * - Cached: Returns cached value if dependencies haven't changed * - Minimal overhead: Uses dirty flag instead of always running getter * * @example * ```ts * const count = signal({ n: 0 }); * const doubled = computed(() => count.n * 2); * * console.log(doubled.value); // 0 * count.n = 5; * console.log(doubled.value); // 10 * ``` */ export declare function computed(getter: ComputedGetter): Computed; export declare function computed(options: WritableComputedOptions): WritableComputed; /** * Type guard to check if a value is a computed signal. * * @example * ```ts * const doubled = computed(() => count.value * 2); * console.log(isComputed(doubled)); // true * console.log(isComputed({ value: 1 })); // false * ``` */ export declare function isComputed(value: unknown): value is Computed; //# sourceMappingURL=computed.d.ts.map