export { normalize, snakeCase } from "./_normalize.js"; export { PARSERS, parserFor } from "./_registry.js"; export type { ParserFn } from "./_registry.js"; export { ESPN_ENDPOINT_PARSERS, parserForEndpoint, parse_summary, SUMMARY_SECTION_PARSERS, } from "./espn.js"; /** Tidy rows, or — for the ESPN `summary` dispatcher with no section — the dict * of all 21 sub-frames. `null` when no parser is registered for the endpoint. */ export type ParsedResult = Record[] | Record[]> | null; /** * Unified parse helper: turn a raw payload into tidy rows given how the endpoint * was dispatched. * * - `kind: "espn"` — `key` is the endpoint short name (e.g. `"scoreboard"`, * `"summary"`); the `summary` dispatcher honours `section` (omit it to get the * dict of all 21 sub-frames). * - `kind: "flat"` — `key` is the registered parser name (a native wrapper's * `parser`, e.g. `"parse_mlb_api_schedule"`). * * Returns `null` when no parser is registered, so callers fall back to raw. */ export declare function parseEndpoint(kind: "espn" | "flat", key: string, raw: any, section?: string): ParsedResult; //# sourceMappingURL=index.d.ts.map