export async function convertToPdf() {
  return { code: "unsupported", message: "Browser LiteParse conversion is unavailable." };
}

export async function convertBufferToPdf() {
  return { code: "unsupported", message: "Browser LiteParse conversion is unavailable." };
}

export async function cleanupConversionFiles() {}

export async function guessExtensionFromBuffer(input: Uint8Array | ArrayBuffer) {
  const bytes = input instanceof Uint8Array ? input : new Uint8Array(input);
  const isPdf =
    bytes.length >= 4 &&
    bytes[0] === 0x25 &&
    bytes[1] === 0x50 &&
    bytes[2] === 0x44 &&
    bytes[3] === 0x46;
  return isPdf ? ".pdf" : undefined;
}

