import type { GolfScorecard, ShotRecord } from './types.js'; import type { SlopeConfig } from './config.js'; /** * Load SLOPE scorecards from the configured directory. * Filters by minSprint and normalizes sprint_number. */ export declare function loadScorecards(config: SlopeConfig, cwd?: string): GolfScorecard[]; export declare function discoverScorecardFiles(config: SlopeConfig, cwd?: string): string[]; export declare function sprintNumberFromScorecardFile(file: string, config: SlopeConfig): number | null; /** * Detect the latest sprint number from existing scorecards. * Returns 0 if no scorecards are found. */ export declare function detectLatestSprint(config: SlopeConfig, cwd?: string): number; /** * Resolve the current sprint number: explicit config > auto-detect + 1. */ export declare function resolveCurrentSprint(config: SlopeConfig, cwd?: string): number; /** * Normalize a raw scorecard object to ensure consistent field names. * Handles legacy `hole_stats` → `stats` and `sprint` → `sprint_number`. */ export declare function normalizeScorecard(raw: Record): GolfScorecard; export declare function normalizeScorecardShots(card: Record | (Partial & { tickets?: unknown[]; })): ShotRecord[]; //# sourceMappingURL=loader.d.ts.map