/** * Generic parser for any Bifrost module payload (the DEFAULT for most * fox_bifrost endpoints). Handles: * * 1. a bare list payload — `[ {...}, ... ]` — flattened directly; * 2. an object wrapping records under a list-bearing key (`groupList`, * `sectionList`, `results`, …) — the first such list is flattened; * 3. a single module object with no inner list — emitted as one flat row. * * Returns `[]` for empty / unrecognized payloads. */ export declare function parse_fox_bifrost_list(raw: any): Record[]; /** * Parse the scoreboard / scores / schedule family into one row per game. * * Bifrost scoreboard payloads (`ScoreboardResponse` / `LeagueScores`) carry the * games under `selectionGroupList[].selectionList[]` (each selection is a game * tile). This walks every selection across every group and prefixes the group * `title` / `id` onto each row as `group_*`. Falls back to a bare `events[]` / * `groupList[]` list, then to the generic flattener. Returns `[]` when empty. */ export declare function parse_fox_bifrost_scoreboard(raw: any): Record[]; /** * Parse the standings / polls / team-rankings family into one row per entry. * * Bifrost standings payloads (`Standings`) wrap rows under * `standingsSections[].standings[]`. Each section's `title` / `id` is prefixed * onto its rows as `section_*` so a flattened row keeps its grouping context. * `stats-con` tables ship the same sectioned shape. Falls back to the generic * flattener for un-sectioned payloads. Returns `[]` when empty / malformed. */ export declare function parse_fox_bifrost_standings(raw: any): Record[]; /** * Parse the event-data / matchup family. * * Bifrost event payloads (`EventData` / `EventMatchup`) are deeply nested module * shells with no single canonical row list — the most useful tidy projection is * the head-to-head stat comparison. This unrolls * `teamStatsComparison.items[]` (matchup) / `gameStats.items[]` (event data) * into one row per compared stat, falling back to a single flattened row of the * whole module shell so callers always get the raw fields. Returns `[]` empty. */ export declare function parse_fox_bifrost_event(raw: any): Record[]; /** * Parse the team-roster family into one row per player. * * Bifrost roster payloads (`TeamRoster`) ship `groups[]`, each a table with * `headers[]` + `rows[]`. This walks every group's `rows[]` and prefixes the * group `template` onto each row as `group_*`. Returns `[]` when empty. */ export declare function parse_fox_bifrost_team_roster(raw: any): Record[]; /** * Parse the search-results family into one row per result. * * Bifrost search payloads (`SearchResults`) wrap hits under `results[]`. Each * result object is flattened to a row. Returns `[]` when empty / malformed. */ export declare function parse_fox_bifrost_search(raw: any): Record[]; //# sourceMappingURL=fox_bifrost.d.ts.map