/** * @file * * The `ObjectValue` behind `FileValue.getProps`: a note's frontmatter wrapped for a Bases formula. * * Obsidian spells it `ObjectValue.fromFrontMatter`, a static that NEITHER `obsidian.d.ts` NOR * `obsidian-typings` declares. L1 binds an exported class's surface to those two and L4 forbids a `__` * suffix on something Obsidian really has, so it lives here instead — the same call * `link-value-from-reference.ts` makes. * * What makes it more than a constructor call is its evaluator: frontmatter is the one place where a * plain string may stand for a wikilink, a URL or a date, and where a `tags` property is a * {@link TagsListValue} rather than a list of strings. The evaluator REINSTALLS itself on every nested list * and object it produces, so those readings reach arbitrarily deep into the frontmatter rather than only * its top level. */ import type { App } from '../../obsidian/App.cjs'; import type { TFile } from '../../obsidian/TFile.cjs'; import { ObjectValue } from '../../obsidian/ObjectValue.cjs'; /** * Wraps a note's frontmatter as an `ObjectValue`, as Obsidian's `ObjectValue.fromFrontMatter` does. * * @param app - The app used to resolve a wikilink found in the frontmatter. * @param file - The note the frontmatter belongs to; its path is the source path of every link. * @param frontMatter - The parsed frontmatter. * @returns An object value over a SHALLOW COPY of `frontMatter`, so evaluating a property never writes * back into the metadata cache, carrying the frontmatter evaluator described in this file's notes. */ export declare function createFrontMatterObjectValue(app: App, file: TFile, frontMatter: Record): ObjectValue;