import * as _storyteller_platform_ghost_story from '@storyteller-platform/ghost-story'; import { TimingAggregator } from '@storyteller-platform/ghost-story'; import { AsyncSemaphore } from '@esfx/async-semaphore'; import { Logger } from 'pino'; import { AudioEncoding } from './AudioEncoding.cjs'; interface ProcessOptions { maxLength?: number | null | undefined; encoding?: AudioEncoding | null | undefined; parallelism?: number | null | undefined; signal?: AbortSignal | null | undefined; onProgress?: ((progress: number) => void) | null | undefined; logger?: Logger | null | undefined; } declare function processAudiobook(input: string, output: string, options: ProcessOptions): Promise; interface ProcessFileOptions extends Omit { lock: AsyncSemaphore; } declare function processFile(input: string, output: string, prefix: string, options: ProcessFileOptions): Promise<{ processedFiles: string[]; timing: _storyteller_platform_ghost_story.Timing; }>; export { type ProcessOptions, processAudiobook, processFile };