/** * Linked (writable) computed helpers. */ /** * A writable computed-like signal. */ export interface LinkedSignal { /** Gets or sets the current value with dependency tracking. */ value: T; /** Gets the current value without dependency tracking. */ peek(): T; } /** * Creates a writable computed signal by linking a getter and setter. * * @template T - The derived value type * @param getValue - Getter that derives the current value * @param setValue - Setter that writes back to underlying signals * @returns A writable computed-like signal * * @example * ```ts * const first = signal('Ada'); * const last = signal('Lovelace'); * const fullName = linkedSignal( * () => `${first.value} ${last.value}`, * (next) => { * const [a, b] = next.split(' '); * first.value = a ?? ''; * last.value = b ?? ''; * } * ); * ``` */ export declare const linkedSignal: (getValue: () => T, setValue: (value: T) => void) => LinkedSignal; //# sourceMappingURL=linked.d.ts.map