import type { CadenceConfig } from '@manehorizons/cadence-types'; import type { ConfigExplanation } from './types.js'; /** Options controlling what {@link renderText} emits. */ export interface RenderOptions { /** Deep-dive a single top-level config field. */ field?: string; /** Dump every config key, grouped. */ all?: boolean; } /** The top-level config keys a user can target with `config explain `. */ export declare function fieldNames(config: CadenceConfig): string[]; /** Whether `name` is a renderable top-level config field. */ export declare function isKnownField(config: CadenceConfig, name: string): boolean; /** * Render a {@link ConfigExplanation} to human text. Pure over its input — the * CLI layer (phase 92) decides the exit code (e.g. non-zero for an unknown * field, via {@link isKnownField}). */ export declare function renderText(exp: ConfigExplanation, opts: RenderOptions): string; /** * The structured (JSON) form of the explanation. Omits the retained source * `config` (that is what `cadence config get` / `--all` are for) and is * guaranteed JSON-safe. */ export declare function renderJson(exp: ConfigExplanation): unknown; //# sourceMappingURL=render.d.ts.map