import { DocumentFormat } from "documents.js"; import { Command } from "commander"; //#region src/format.d.ts declare function isDocumentFormat(value: string): value is DocumentFormat; declare function inferFormatFromExtension(path: string): DocumentFormat | undefined; declare function formatToExtension(format: DocumentFormat): string; //#endregion //#region src/commands/shared.d.ts interface ConversionCommandOptions { readonly out?: string; readonly timeoutMs?: number; readonly json: boolean; readonly quiet: boolean; readonly verbose: boolean; readonly dumpPackage?: string; readonly fontFiles?: readonly string[]; readonly reportFontSubstitutions?: boolean; readonly delimiter?: string; readonly sheet?: string; readonly page?: number; } declare function formatError(error: unknown, verbose: boolean): string; declare function buildConversionAction(source: DocumentFormat, target: DocumentFormat): (input: string, output: string | undefined, options: ConversionCommandOptions) => Promise; //#endregion //#region src/program.d.ts declare function createProgram(): Command; //#endregion //#region src/runtime/exit-codes.d.ts declare const EXIT_SUCCESS = 0; declare const EXIT_INPUT_ERROR = 1; declare const EXIT_USAGE_ERROR = 2; declare const EXIT_NEEDS_INFO = 3; declare const EXIT_TIMEOUT = 124; declare const EXIT_INTERRUPTED = 130; declare function mapErrorToExit(error: unknown, abortReason: "interrupt" | "timeout" | undefined): number; //#endregion export { type ConversionCommandOptions, EXIT_INPUT_ERROR, EXIT_INTERRUPTED, EXIT_NEEDS_INFO, EXIT_SUCCESS, EXIT_TIMEOUT, EXIT_USAGE_ERROR, buildConversionAction, createProgram, formatError, formatToExtension, inferFormatFromExtension, isDocumentFormat, mapErrorToExit };