type PdfOutputMode = "buffer" | "file"; type PdfEngineErrorCode = "VALIDATION_ERROR" | "BROWSER_NOT_FOUND" | "BROWSER_LAUNCH_FAILED" | "ASSET_LOAD_FAILED" | "RENDER_FAILED" | "TIMEOUT" | "FILE_OUTPUT_FAILED"; type BrowserSource = "override" | "chrome" | "edge" | "bundled"; type CssLength = string; type PdfPageSize = { width: CssLength; height: CssLength; }; type PdfMargins = { top?: CssLength; right?: CssLength; bottom?: CssLength; left?: CssLength; }; type RenderPdfOptions = { html: string; size: PdfPageSize; margins?: PdfMargins; landscape?: boolean; output?: PdfOutputMode; outputPath?: string; scale?: number; timeout?: number; executablePath?: string; }; type NormalizedRenderPdfOptions = { html: string; size: PdfPageSize; margins?: Required; landscape?: boolean; output: PdfOutputMode; outputPath?: string; scale: number; timeout: number; executablePath?: string; }; type RenderPdfFileResult = { path: string; }; type RenderPdfResult = Buffer | RenderPdfFileResult; type DetectedBrowser = { name: string; source: BrowserSource; executablePath: string; }; type AssetLoadFailure = { url: string; errorText: string; }; type PdfEngineErrorOptions = { cause?: unknown; details?: unknown; }; declare class PdfEngineError extends Error { readonly code: PdfEngineErrorCode; readonly details?: unknown; constructor(code: PdfEngineErrorCode, message: string, options?: PdfEngineErrorOptions); } export { type AssetLoadFailure as A, type BrowserSource as B, type CssLength as C, type DetectedBrowser as D, type NormalizedRenderPdfOptions as N, PdfEngineError as P, type RenderPdfOptions as R, type RenderPdfFileResult as a, type RenderPdfResult as b, type PdfEngineErrorCode as c, type PdfMargins as d, type PdfOutputMode as e, type PdfPageSize as f };