/** * @file * * The conversion behind every Bases value's `lazyEvaluator`: a raw element or property turned into a * `Value`. * * Obsidian has one such function and both `ListValue` and `ObjectValue` install it as their default * evaluator, so it lives beside them here rather than in either class. It has to construct the very * classes that call it, which is why the import cycle below cannot be broken. */ import type { Value } from '../../obsidian/Value.cjs'; /** * Converts a raw element or property to a `Value`, as Obsidian's default evaluator does. * * @param raw - The raw value to convert. * @returns `NullValue.value` for `null`, `undefined` or a function; a `StringValue`, `NumberValue` * (`NaN` excluded) or `BooleanValue` for a primitive; a `ListValue` over a copy of an array; a * `DateValue` over a copy of a `Date`; and an `ObjectValue` over a shallow copy of any other object. * @throws {Error} For any other raw value, such as a `symbol`, a `bigint` or `NaN`. */ export declare function lazyEvaluate(raw: unknown): Value;