/** * @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 { ValueEqualityFn } from './api'; import { WritableSignal } from './signal'; /** * Creates a writable signal whose value is initialized and reset by the linked, reactive computation. * * @publicApi 20.0 */ export declare function linkedSignal(computation: () => D, options?: { equal?: ValueEqualityFn>; debugName?: string; }): WritableSignal; /** * Creates a writable signal whose value is initialized and reset by the linked, reactive computation. * This is an advanced API form where the computation has access to the previous value of the signal and the computation result. * * Note: The computation is reactive, meaning the linked signal will automatically update whenever any of the signals used within the computation change. * * @publicApi 20.0 * @see [Dependent state with linkedSignal](guide/signals/linked-signal) */ export declare function linkedSignal(options: { source: () => S; computation: (source: NoInfer, previous?: { source: NoInfer; value: NoInfer; }) => D; equal?: ValueEqualityFn>; debugName?: string; }): WritableSignal;