/** Apply the `underscore` column transform to every key of a row. */ export declare function underscoreKeys(row: Record): Record; /** * Parse Savant CSV text into tidy rows. Standard quoted CSV (the first header * is `"last_name, first_name"` — preserved verbatim). Empty / unparseable input * returns `[]`. Headers go through `underscore` (a near no-op on Savant's * already-snake headers). */ export declare function csvToRowsRaw(text: any): Record[]; /** * Parse a Statcast search CSV payload (`/statcast_search/csv`) into tidy rows, * one row per search result. Non-string / empty input returns `[]`. */ export declare function parse_mlb_statcast_search(payload: any): Record[]; /** * Parse a Statcast leaderboard CSV payload (`/leaderboard/*` with `csv=true`) * into tidy rows, one row per leaderboard entry. Non-string / empty input * returns `[]`. The first column header (`"last_name, first_name"`) is kept * verbatim, matching the Python parser. */ export declare function parse_mlb_statcast_leaderboard(payload: any): Record[]; /** * Parse a Statcast gamefeed (`/gf`) JSON payload into a tidy per-pitch frame. * * The Savant `/gf` feed carries the game's pitch-by-pitch tracking under the * `team_home` and `team_away` arrays (one rich object per pitch). This * concatenates both sides into one frame, one row per pitch. When neither side * is present it falls back to the `exit_velocity` array (batted-ball events). */ export declare function parse_mlb_statcast_gamefeed(payload: any): Record[]; /** * Parse the Savant `/schedule` JSON into a tidy frame of one row per game. * * The feed wraps the standard MLB Stats API schedule under * `schedule.dates[].games[]`. This flattens every game across all dates into * one row, snake-cased. Missing / empty input returns `[]`. */ export declare function parse_mlb_statcast_schedule(payload: any): Record[]; /** * Parse an HTML-embedded-JSON Statcast leaderboard into a tidy frame. * * A couple of leaderboards (`fielding-run-value`, `statcast-park-factors`) * return `text/html` even with `csv=true`; the rows live in an embedded * `const data = [...]` `