// Public bucket — raw IC HTTP
const res = await fetch("https://6vbhm-nqaaa-aaaan-q6muq-cai.raw.icp0.io/cloud/icp/hello.txt")
const bytes = new Uint8Array(await res.arrayBuffer())
import { downloadFileBlob, listFiles, getPublicFileUrl } from "@/services/bucket/bucket"
import { getWalletActor } from "@/services/wallet"
const blob = await downloadFileBlob(identity, "icp", "/hello.txt", "icp_cloud_…")
const page = await listFiles(identity, "icp", 0, 20, "icp_cloud_…")
const cdnUrl = await getPublicFileUrl(identity, "icp", "/hello.txt")
const actor = await getWalletActor(identity)
await actor.getFile("icp", "/hello.txt", ["icp_cloud_…"])
await actor.fileExists("icp", "/hello.txt", ["icp_cloud_…"])
await actor.listFolder("icp", "/", BigInt(0), BigInt(20), ["icp_cloud_…"])
await actor.searchFiles("icp", "hello", BigInt(0), BigInt(20), ["icp_cloud_…"])