import { KokoroAudio, KokoroNodeOptions } from '../core/kokoro-node'; import { LoadDocumentOptions } from './document'; export interface RenderOptions extends LoadDocumentOptions, KokoroNodeOptions { /** Where to write the audio. `-` writes the WAV to stdout. */ output?: string; /** * Replace the synthesizer. Used by the tests, and by hosts that already have a * model loaded and do not want a second copy. */ synthesize?: (text: string, options: KokoroNodeOptions) => Promise; } export interface RenderResult { /** Path written, or `-` when the audio went to stdout. */ output: string; /** The text that was spoken, after Markdown conversion. */ text: string; format: "markdown" | "text"; source: string; durationSeconds: number; bytes: number; } /** `notes.md` becomes `notes.wav`, next to the original. */ export declare function defaultOutputPath(input: string): string; /** * Reads a document, synthesizes it, and writes a WAV file. * * Returns the spoken text alongside the file details so a caller can show what * was read without converting the document a second time. */ export declare function renderDocument(options: RenderOptions): Promise;