import ky from "npm:ky";
const prefixUrl = "https://public.api.bsky.app/xrpc/";
export function resolveHandle(handle: string) {
return ky.get("com.atproto.identity.resolveHandle", {
searchParams: { handle },
prefixUrl,
}).json();
}
export function getPostThread(uri: string) {
return ky.get("app.bsky.feed.getPostThread", {
searchParams: { uri },
prefixUrl,
}).json();
}