import type { LoadedSpec } from '../../../types/provider-adapter.js';
/**
 * Load + parse the unified `spec.md` for a given spec ID.
 * Never throws on parse issues — surfaces them via `LoadedSpec.warnings`.
 *
 * Throws only when the spec is not found in the store, or when `spec.specPath`
 * is missing on disk (genuine I/O failure).
 */
export declare function loadSpecForRendering(projectId: string, projectPath: string, specId: string): Promise<LoadedSpec>;
/**
 * Extract the body of an H2/H3 section starting at a heading matching `headingRe`,
 * up to the next heading of equal-or-higher level. Returns null if not found.
 */
export declare function extractSection(body: string, headingRe: RegExp): string | null;
//# sourceMappingURL=spec-loader.d.ts.map