import type { JSX } from 'react'; /** * Props of the `EditorDescription` component. * @internal */ type EditorDescriptionProps = Readonly<{ /** * The id of the editor's form control, used to derive the text ids. */ editorId: string; /** * Whether the editor is read-only. */ readOnly: boolean; /** * Whether the editor is required. */ required: boolean; }>; /** * Ids of the hidden texts the edit button refers to. * @internal */ export type EditorDescriptionIds = Readonly<{ readOnly: string; required: string; instructions: string; editPrefix: string; }>; /** * Derives the ids of the hidden texts from the editor id. * @param editorId - The id of the editor's form control. * @returns The ids of the hidden texts. * @internal */ export declare function getEditorDescriptionIds(editorId: string): EditorDescriptionIds; /** * Renders the hidden texts of the edit button: the "Edit" prefix for * `aria-labelledby`, how to stop editing, and the read-only and required * states, which `button` doesn't support as ARIA attributes. * @param props - The editor id and state to describe. * @returns The hidden texts. * @internal */ export declare function EditorDescription(props: EditorDescriptionProps): JSX.Element; export {}; //# sourceMappingURL=EditorDescription.d.ts.map