import type { Diagnostic, File } from '../interfaces'; import type { Project } from '../Project'; export declare class TextFile implements File { srcPath: string; outPath: string; constructor(srcPath: string, outPath: string); project: Project; /** * The text contents of the file (minus any frontmatter) */ text: string; /** * A collection of diagnostics for this file */ diagnostics: Diagnostic[]; get lines(): string[]; private _lines; /** * The attributes found in the file's frontmatter (if present) */ attributes: Record; /** * Get the title of this file (generally used for html page title and tree view) */ get title(): string; /** * Load the file from disk and parse any frontmatter */ load(): void; /** * Get the line of source code at the specified line index, or null if the index is invalid or out of bounds */ getLine(index: number): string; publish(): void; }