import type { Variable } from '@markdoc/markdoc'; /** * Resolves the value of a Markdoc `Variable` node. * * If the variable path starts with `"env"`, the value is read from the environment * variables using process.env. Otherwise, the value is retrieved from the * provided `variables` object using `getValueDeep`. * * @param node - The `Variable` node to resolve. * @param variables - Optional record of variable names to values, used for non-environment variables. * @returns The resolved variable value as a string, or an empty string if not found. * * @example * ```ts * const node = { path: ['env', 'API_KEY'] } as Variable; * getVariable(node); // Reads process.env.API_KEY * * const node2 = { path: ['user', 'name'] } as Variable; * getVariable(node2, { user: { name: 'John' } }); // "John" * ``` */ export declare function getVariable(node: Variable, variables?: Record): string; //# sourceMappingURL=get-variable.d.ts.map