import { detectPaperSize } from '@pdfme/common'; export { detectPaperSize }; export interface UnifiedJob { template: Record; inputs: Record[]; options?: unknown; } interface LoadedInput { template: Record; inputs: Record[]; options?: unknown; templateDir?: string; } export interface WriteTargetInspection { path: string; resolvedPath: string; parentDir: string; exists: boolean; existingType?: 'file' | 'directory' | 'other'; writable: boolean; checkedPath?: string; checkedType?: 'file' | 'directory' | 'other'; error?: string; } export declare function readJsonFile(filePath: string): unknown; export declare function loadInput(args: { _: string[]; template?: string; inputs?: string; }): LoadedInput; export declare function resolveBasePdf(template: Record, basePdfArg: string | undefined, templateDir?: string): Record; export declare function getImageOutputPaths(pdfOutputPath: string, pageCount: number): string[]; export declare function writeOutput(filePath: string, data: Uint8Array | ArrayBuffer): void; export declare function readPdfFile(filePath: string): Uint8Array; export declare function parsePageRange(rangeStr: string, totalPages: number): number[]; export declare function readJsonFromStdin(): Promise; export declare function ensureSafeDefaultOutputPath(options: { filePath: string; rawArgs: string[]; optionName: string; optionAlias?: string | string[]; defaultValue: string; force?: boolean; }): void; export declare function getSafeDefaultOutputPathIssue(options: { filePath: string; rawArgs: string[]; optionName: string; optionAlias?: string | string[]; defaultValue: string; force?: boolean; }): string | undefined; export declare function inspectWriteTarget(filePath: string): WriteTargetInspection;