/** * Copy Resolution * * Resolves UI text and copy with defaults and placeholder substitution. * * @module @kya-os/consent/resolution/resolve-copy */ import type { ConsentConfig, ConsentUI, ConsentTerms, ConsentSuccess } from "../types/config.types.js"; import type { ResolvedConsentCopy } from "../types/copy.types.js"; /** * Placeholder for agent name in description text */ export declare const AGENT_NAME_PLACEHOLDER = "[AI Agent]"; /** * Resolve UI text with defaults * * @param ui - Partial UI config * @returns Resolved UI with all defaults applied */ export declare function resolveUI(ui?: ConsentUI): Required; /** * Resolve terms config with defaults * * @param terms - Partial terms config * @returns Resolved terms with all defaults applied */ export declare function resolveTerms(terms?: ConsentTerms): Required; /** * Resolve success page config with defaults * * @param success - Partial success config * @returns Resolved success with all defaults applied */ export declare function resolveSuccess(success?: ConsentSuccess): Required; /** * Substitute agent name placeholder in text * * @param text - Text potentially containing [AI Agent] placeholder * @param agentName - Agent name to substitute * @returns Text with placeholder replaced */ export declare function substituteAgentName(text: string, agentName?: string): string; /** * Resolve consent copy from config * * Applies all defaults and performs placeholder substitution. * * @param config - Partial consent config * @param agentName - Optional agent name for placeholder substitution * @returns Fully resolved copy ready for rendering */ export declare function resolveConsentCopy(config?: ConsentConfig, agentName?: string): ResolvedConsentCopy; //# sourceMappingURL=resolve-copy.d.ts.map