import "./builder.js"; import { TagObject } from "../../types.js"; //#region src/utils/pages/to-text.d.ts interface PagesToTextOptions { /** * Additional imports of your MDX components. */ imports?: { names: string[]; from: string; }[]; /** * Customize frontmatter. * * A `full: true` property will be added by default. */ frontmatter?: (title: string, description: string | undefined, context: DocumentContext) => Record; /** * Add description to document body. * * We recommend to enable it, it is disabled by default because some OpenAPI schemas have invalid description that breaks Markdown syntax. * * @defaultValue false */ includeDescription?: boolean; /** * Add a comment to the top of generated files indicating they are auto-generated. * - `true`: Adds a standardized comment * - `false`: No comment is added * - `string`: Adds the provided custom comment * * @defaultValue true */ addGeneratedComment?: boolean | string; } type DocumentContext = { type: 'tag'; tag: TagObject; } | { type: 'operation'; } | { type: 'file'; }; //#endregion export { DocumentContext, PagesToTextOptions };