export function isZlibData(data: Uint8Array): boolean { // @ts-expect-error const [firstByte, secondByte] = data; return firstByte === 0x78 && (secondByte === 0x01 || secondByte === 0x9C || secondByte === 0xDA); } export async function decompressZlib(data: Uint8Array): Promise { const { inflate } = await import("pako"); return inflate(data); }