import type { DashboardEventsResponse, DashboardMetrics, DashboardProjectSummary, DashboardUsageStats, ProjectHealthMetrics, ProjectHealthScore, SpecDetailData, SpecFrontmatter } from '../../types/index.js';
/** Parse criteria counts from PROGRESS.md content */
export declare function parseCriteriaFromProgress(content: string): {
    total: number;
    implemented: number;
};
/** Load all projects from data/projects/ */
export declare function loadAllProjects(): Promise<DashboardProjectSummary[]>;
/** Load a single project by its ID */
export declare function loadProject(projectId: string): Promise<DashboardProjectSummary | null>;
/** Compute health metrics for a project */
export declare function computeHealthMetrics(project: DashboardProjectSummary): ProjectHealthMetrics;
/** Read spec markdown files for the detail view */
export declare function loadSpecDetail(projectId: string, specId: string): Promise<{
    hu: string | null;
    ficha: string | null;
    progress: string | null;
}>;
/** Extract code links (file references) from a technical markdown */
export declare function extractCodeLinks(technicalMd: string): string[];
/** Parse YAML-like frontmatter from spec.md content */
export declare function parseFrontmatter(content: string): SpecFrontmatter;
/** Load enhanced spec detail with code links and frontmatter */
export declare function loadSpecDetailEnhanced(projectId: string, specId: string): Promise<SpecDetailData>;
/** Load the drift score from constitution-drift.json */
export declare function loadDriftScore(projectId: string): Promise<number>;
/** Load aggregated project metrics */
export declare function loadProjectMetrics(projectId: string): Promise<DashboardMetrics>;
/** Load project health score */
export declare function loadProjectHealthScore(projectId: string): Promise<ProjectHealthScore>;
/** Load events for a project since a given timestamp.
 *  Scans spec.json files for updatedAt fields newer than `since`. */
export declare function loadProjectEvents(projectId: string, since: string): Promise<DashboardEventsResponse>;
/** Read usage stats from data/global/usage.json (written by SPEC-064) */
export declare function loadUsageStats(): Promise<DashboardUsageStats>;
//# sourceMappingURL=data-loader.d.ts.map