/** * A single token extracted from a Fountain screenplay. * Mirrors the fountain-js Token shape but uses a plain object * so consumers are not coupled to the library's class hierarchy. */ export interface FountainToken { type: string; text?: string; scene_number?: string; is_title?: boolean; dual?: string; depth?: number; } /** * Structured result returned by both the Fountain parser and the * PDF-to-tokens heuristic parser, ensuring a single contract that * downstream code (scene-extractor, storyboard pipeline, etc.) can * depend on regardless of source format. */ export interface FountainResult { title: string; credit: string; author: string; tokens: FountainToken[]; } /** * Parse a `.fountain` file from disk and return a structured result. * * @param filePath - Absolute or relative path to a `.fountain` screenplay file. * @returns A `FountainResult` containing metadata and an ordered token array. * @throws If the file cannot be read or is not valid UTF-8 text. */ export declare function parseFountain(filePath: string): Promise; //# sourceMappingURL=fountain-parser.d.ts.map