/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { Signal, ValueEqualityFn } from './api'; /** * Options passed to the `computed` creation function. */ export interface CreateComputedOptions { /** * A comparison function which defines equality for computed values. */ equal?: ValueEqualityFn; /** * A debug name for the computed signal. Used in Angular DevTools to identify the signal. */ debugName?: string; } /** * Create a computed `Signal` which derives a reactive value from an expression. * @see [Computed signals](guide/signals#computed-signals) */ export declare function computed(computation: () => T, options?: CreateComputedOptions): Signal;