import { SERIALIZATION_FORMAT } from './format'; import * as MDXAST from './ast/documentAst'; export declare function decodeDocument(contents: string, format?: SERIALIZATION_FORMAT, filePath?: string): { children: MDXAST.Content[]; }; export declare function encodeDocument(ast: { children: MDXAST.Content[]; }, format: SERIALIZATION_FORMAT, options?: { sourceFormat?: SERIALIZATION_FORMAT; embeddedFormat?: SERIALIZATION_FORMAT; }): string; export declare function convertDocument(contents: string, targetFormat: SERIALIZATION_FORMAT, options?: { sourceFormat?: SERIALIZATION_FORMAT; embeddedFormat?: SERIALIZATION_FORMAT; filePath?: string; }): string;