import { DocumentFeatures } from "./DocumentEditor/document-features.js"; import { BasicFormField, ComponentBlock, ComponentSchema, DocumentElement, ContentFormField, SlugFormField } from "../../api.js"; type HeadingLevels = true | readonly (1 | 2 | 3 | 4 | 5 | 6)[]; type FormattingConfig = { inlineMarks?: true | { bold?: true; italic?: true; underline?: true; strikethrough?: true; code?: true; superscript?: true; subscript?: true; keyboard?: true; }; listTypes?: true | { ordered?: true; unordered?: true; }; alignment?: true | { center?: true; end?: true; }; headingLevels?: HeadingLevels | { levels: HeadingLevels; schema?: Record; }; blockTypes?: true | { blockquote?: true; code?: true | { schema?: Record; }; }; softBreaks?: true; }; export type BasicStringFormField = BasicFormField | SlugFormField; type DocumentFeaturesConfig = { formatting?: true | FormattingConfig; links?: true; dividers?: true; images?: true | { directory?: string; publicPath?: string; schema?: { alt?: BasicStringFormField; title?: BasicStringFormField; }; }; layouts?: readonly (readonly [number, ...number[]])[]; tables?: true; }; export declare function normaliseDocumentFeatures(config: DocumentFeaturesConfig): DocumentFeatures; /** * @deprecated `fields.markdoc` has superseded this field. `fields.mdx` is also available if you prefer MDX. */ export declare function document({ label, componentBlocks, description, ...documentFeaturesConfig }: { label: string; componentBlocks?: Record; description?: string; } & DocumentFeaturesConfig): ContentFormField; export {};