import { Option } from '@commander-js/extra-typings'; import { Chapter, Language, LanguageOptions, SourceLanguages, Variant } from '../langs'; import type { Context, Result } from '../types'; import type { FileGetter } from '../modules/moduleTypes'; /** * Converts a string to the corresponding Source chapter. Throws an error if the string * doesn't represent a valid string. */ export declare function chapterParser(str: string): Chapter; /** * Returns an {@link Option} for selecting Source chapters. */ export declare function getChapterOption(): Option<'--chapter ', undefined, Chapter.SOURCE_4, undefined, false, Chapter>; export declare function getChapterOption(defaultValue: U, argParser: (value: string) => T): Option<'--chapter ', undefined, U, undefined, false, T>; export declare function getVariantOption(defaultValue: T, choices: T[]): Option<"--variant ", undefined, T, undefined, false, T>; export declare const getLanguageOption: () => Option<"--languageOptions ", undefined, {}, LanguageOptions, false, undefined>; export declare function handleResult(result: Result, context: Context, verboseErrors: boolean): string; export declare function assertLanguageCombo(combo: Language): asserts combo is SourceLanguages; export declare const nodeFileGetter: FileGetter;