/** * Versions of Node < 20 do not have crypto attached to global by default * and this is used by @contensis/html-canvas package */ export declare const polyfillNodeCrypto: () => Promise; /** * Cannot statically import @contensis/html-canvas with Node < 20 as we require * a patch for the crypto lib onto the global object */ export declare const asyncImportHtmlParser: () => Promise; export declare const patchForDeterministicIds: (prefix?: string) => void; /** enterprise-fetch v2 uses the native node fetch if available which * does not work with Management API file uploads correctly, * so we force it to fallback to use the older `node-fetch` implementation * which the Management API is deisgned to work with. * Native fetch shows this when uploading an asset: content-length: 17 [object FormData] * where node-fetch show this Content-Length: 53427 ----------------------------220769149404052112875897 Content-Disposition: form-data; name="file"; filename="default-meta1.jpg" Content-Type: image/jpeg ...binary data... */ export declare const patchFetchForFileUploads: () => void;