// node:zlib shim — constants needed by axios
export const Z_SYNC_FLUSH = 2;
export const Z_NO_FLUSH = 0;
export const Z_PARTIAL_FLUSH = 1;
export const Z_FULL_FLUSH = 3;
export const Z_FINISH = 4;
export const Z_DEFAULT_COMPRESSION = -1;
export const constants = { Z_SYNC_FLUSH, Z_NO_FLUSH, Z_PARTIAL_FLUSH, Z_FULL_FLUSH, Z_FINISH, Z_DEFAULT_COMPRESSION };
export function createGzip() { throw new Error('zlib not available in CF Workers'); }
export function createGunzip() { throw new Error('zlib not available in CF Workers'); }
export function createUnzip() { throw new Error('zlib not available in CF Workers'); }
export function createBrotliDecompress() { throw new Error('zlib not available in CF Workers'); }
export function gzipSync() { throw new Error('zlib not available in CF Workers'); }
export function gunzipSync() { throw new Error('zlib not available in CF Workers'); }
export function deflateSync() { throw new Error('zlib not available in CF Workers'); }
export function inflateSync() { throw new Error('zlib not available in CF Workers'); }
export default { Z_SYNC_FLUSH, Z_NO_FLUSH, Z_PARTIAL_FLUSH, Z_FULL_FLUSH, Z_FINISH, Z_DEFAULT_COMPRESSION, constants, createGzip, createGunzip, createUnzip, createBrotliDecompress, gzipSync, gunzipSync, deflateSync, inflateSync };
