/** * Environment detection and safe utility wrappers. */ /** * Detect if we are running in a browser environment. */ export declare const isBrowser: boolean; /** * Supported Node.js-only features that require explicit guarding for browser compatibility. */ export type NodeFeature = 'fs' | 'path-parsing' | 'pdf-worker-auto-resolution'; /** * Throws an error if attempted to use Node.js-specific features in the browser. * * @param feature - The Node.js feature being accessed * @throws {Error} Clear error message directing browser users to use Buffers */ export declare function assertNode(feature: NodeFeature): void; /** * Polyfills DOMMatrix if not available globally (required for Node.js < 20). * This shim provides enough properties for pdfjs-dist 5.x to calculate * text coordinates and transformations. */ export declare function ensureDomMatrix(): void;