import { type AxiosRequestConfig } from "axios"; /** * GET a Baseball Savant URL and return JSON (object) or raw text (string). * * Content-type drives the shape: `application/json` is parsed to an object; * anything else (`text/csv`, `application/download` for the search export, * `text/html` for the embedded-JSON leaderboards) is returned as the raw * response text. Returns `{}` when the request yields no usable response (so * JSON consumers can chain without a null-check), and `""` only when a body is * present but unreadable. * * @param url Fully-qualified Savant endpoint URL. * @param config Axios request config (e.g. `{ params }`); `params` are passed * through verbatim (the caller drops `undefined`/`null`). * @returns Parsed JSON object for JSON responses, raw `string` for CSV/HTML. */ export declare function statcastGet(url: string, config?: AxiosRequestConfig): Promise; //# sourceMappingURL=statcast_runtime.d.ts.map