import { Computed, ComputeFunctionType, DependableAgileInstancesType } from '../computed'; import { CreateComputedConfigInterfaceWithAgile } from './types'; /** * Returns a newly created Computed. * * A Computed is an extension of the State Class * that computes its value based on a specified compute function. * * The computed value will be cached to avoid unnecessary recomputes * and is only recomputed when one of its direct dependencies changes. * * Direct dependencies can be States and Collections. * So when, for example, a dependent State value changes, the computed value is recomputed. * * [Learn more..](https://agile-ts.org/docs/core/agile-instance/methods#createcomputed) * * @public * @param computeFunction - Function to compute the computed value. * @param config - Configuration object */ export declare function createComputed(computeFunction: ComputeFunctionType, config?: CreateComputedConfigInterfaceWithAgile): Computed; /** * Returns a newly created Computed. * * A Computed is an extension of the State Class * that computes its value based on a specified compute function. * * The computed value will be cached to avoid unnecessary recomputes * and is only recomputed when one of its direct dependencies changes. * * Direct dependencies can be States and Collections. * So when, for example, a dependent State value changes, the computed value is recomputed. * * [Learn more..](https://agile-ts.org/docs/core/agile-instance/methods#createcomputed) * * @public * @param computeFunction - Function to compute the computed value. * @param deps - Hard-coded dependencies on which the Computed Class should depend. */ export declare function createComputed(computeFunction: ComputeFunctionType, deps?: Array): Computed;