import { type ComponentDef } from '@defra/forms-model'; import { type JoiExpression, type ReferenceOptions } from 'joi'; /** * Prevent Markdown formatting * @see {@link https://pandoc.org/chunkedhtml-demo/8.11-backslash-escapes.html} */ export declare function escapeMarkdown(answer: string): string; export declare const addClassOptionIfNone: (options: Extract["options"], className: string) => void; /** * Applies lowerFirst but preserves capitalisation of proper nouns * like "National Grid", "Ordnance Survey" and "OS". */ export declare function lowerFirstPreserveProperNouns(text: string): string; /** * Configuration for Joi expressions that use lowerFirst function */ export declare const lowerFirstExpressionOptions: ReferenceOptions; /** * Creates a Joi expression with lowerFirst function support * Used for error messages in location field components */ export declare const createLowerFirstExpression: (template: string) => JoiExpression;