import { FileBase } from './FileBase.js'; import type { Stringable } from './Stringable.js'; /** * Constructor arguments for {@link MarkdownFile}. */ type MarkdownFileArgs = { /** The file path for the generated Markdown file */ path: string; /** The Markdown content to write to the file */ content: Stringable; }; /** * Represents a Markdown file in the SKMTC DSL system. * * The Markdown counterpart of {@link import('@/dsl/JsonFile.ts').JsonFile}: a * degenerate, non-code file that extends {@link FileBase} directly — it holds * no definitions, imports or re-exports, because Markdown has no grammar to * coordinate. Its `content` is any {@link Stringable} (a string or a composed * snippet tree) and `toString()` renders it verbatim. Written through * `GenerateContext.registerMarkdown`. * * @example * ```typescript * import { MarkdownFile } from '@skmtc/core'; * * const doc = new MarkdownFile({ * path: '@/docs/GetPet.generated.md', * content: '# Get pet' * }); * * console.log(doc.toString()); // '# Get pet' * ``` */ export declare class MarkdownFile extends FileBase { /** The file type, always 'markdown' for Markdown files */ fileType: 'markdown'; /** The Markdown content to write to the file */ content: Stringable; /** * Creates a new MarkdownFile instance. * * @param args - Markdown file configuration * @param args.path - The output path for this Markdown file * @param args.content - The Markdown content to write */ constructor({ path, content }: MarkdownFileArgs); /** * Renders the Markdown content to a string. * * @returns The Markdown content as a string */ toString(): string; } export {};