export default function buildApi(baseURL: string): (url: string, body?: any) => Promise;