/** * Generic parser for any NAPI resource (the DEFAULT for most cbs_napi * endpoints). After unwrapping the `{data}` envelope it handles: * * 1. a bare list payload — `data: [ {...}, ... ]` — flattened directly; * 2. an object that wraps records under a list-bearing key (`rows`, `items`, * `standings`, …) — the first such list is flattened; * 3. a single resource object — `data: { ... }` with no inner list — emitted * as a single flat row. * * Returns `[]` for empty / error-envelope / unrecognized payloads. */ export declare function parse_cbs_napi_list(raw: any): Record[]; /** * Parse the scoreboard / scores / featured-game family into one row per game. * * NAPI scoreboard payloads wrap the games under `data` as either a bare array * of game objects or `{games|scoreboard|scores: [...]}`. Each game object is * flattened to a row (nested `home`/`away`/`status` blocks deep-flatten to * `home_*` / `away_*` / `status_*` columns). A single-game payload (one game * object under `data`) yields one row. Returns `[]` when empty / malformed. */ export declare function parse_cbs_napi_scoreboard(raw: any): Record[]; /** * Parse the standings family (team / player / SportsLine standings) into one * row per entry. * * NAPI standings payloads wrap rows under `data` as a bare array or as * `{standings|rows|entries: [...]}`. When the standings are grouped (e.g. * `{groups: [{name, standings: [...]}]}`) the group's label is prefixed onto * each row as `group_*` so a flattened row keeps its grouping context. Returns * `[]` when empty / malformed. */ export declare function parse_cbs_napi_standings(raw: any): Record[]; /** * Parse the odds / HQ-odds / props family into one row per market line. * * NAPI odds payloads wrap markets under `data` as a bare array or as * `{markets|odds|lines: [...]}`. Each market may carry a nested `books`/`lines` * list (one quote per sportsbook); when present, the market is unrolled to one * row per book (the market-level fields prefixed onto each book row). Markets * with no nested book list flatten to a single row. Returns `[]` when empty / * malformed. */ export declare function parse_cbs_napi_odds(raw: any): Record[]; /** * Endpoint (parser name) -> parser. Mirrors the Python-side registries; keyed by * the parser function name the YAML references. Registered in * src/parsers/_registry.ts. */ export declare const CBS_NAPI_PARSERS: { parse_cbs_napi_list: typeof parse_cbs_napi_list; parse_cbs_napi_scoreboard: typeof parse_cbs_napi_scoreboard; parse_cbs_napi_standings: typeof parse_cbs_napi_standings; parse_cbs_napi_odds: typeof parse_cbs_napi_odds; }; //# sourceMappingURL=cbs_napi.d.ts.map