import type { PresetContent, PresetDefinition, PresetNode, ProjectContext, Variables } from '@presetter/types'; /** * loads a potentially dynamic content * @param _ options describing the content source and merge target * @param _.content content to be loaded * @param _.current existing value that should be merged with resolved content * @param _.variables the variables to use during resolution * @param _.context the context in which the content is being resolved * @returns a promise that resolves to the RESOLVED content */ export declare function resolveContent(_: { content?: PresetContent; current?: T | null; variables?: Variables; context: ProjectContext; }): Promise; /** * resolves the content of a node within a preset * @template T the type of the content to be resolved * @param _ collection of arguments * @param _.name the name of the preset being resolved * @param _.node the node to resolve * @param _.context the context in which the node is being resolved * @param _.initial an optional initial value to start the resolution with * @param _.variables an optional record of variables to use during resolution * @param _.select a function to select the content definition from the preset definition * @returns a promise that resolves to the RESOLVED content of the node, which can be of type `T`, `null`, or `undefined` */ export declare function resolveNodeContent(_: { name: string; node: PresetNode; context: ProjectContext; initial?: T | null; variables?: Variables; select: (definition: PresetDefinition) => PresetContent | undefined; }): Promise; //# sourceMappingURL=content.d.ts.map