import type { WrapperDef, WrapperFn } from "../core/types.js"; /** * Build a league's non-ESPN "flat API" surface. For each flat wrapper, expose * it under BOTH names (same fn), the same dual-case pattern as the ESPN * wrappers: * - `mlb_api_teams(params)` — snake_case (py/R parity), * - `mlbApiTeams(params)` — camelCase canonical (idiomatic JS). * * The wrapper resolves the request via `resolveFlat`, fetches the raw JSON, and * — only when the caller passes `{ parsed: true }` AND a parser is registered — * runs the payload through the parser. Omitting `parsed` returns the raw JSON, * so the dispatch is strictly additive (matches sdv-py's `return_parsed=True`). * * Authenticated families (`def.auth`, e.g. `nfl_api`) additionally resolve a * bearer-token header set before fetching: a caller-supplied `params.headers` * is reused when present, else the family's `AUTH_HEADER_PROVIDERS` entry mints * one (cached + auto-renewed). `params.headers` and `params.parsed` are control * keys — `resolveFlat` only reads declared path/query params, so neither leaks * into the query string. * * @param defs Flat `WrapperDef`s (those with `flat: true` for this api stem). */ export declare function makeFlatModule(defs: WrapperDef[]): Record; //# sourceMappingURL=_make_flat.d.ts.map