/**
 * Instruction file fact extraction - parses heading sections and gathers instruction-level metadata.
 */
import type { AgentProfile, AgentFacts, ReadonlyFS } from "../../types.js";
/**
 * Extract the body text of a named markdown section, or null if not found.
 *
 * @param content - markdown instruction file content to search
 * @param sectionName - case-insensitive heading fragment that identifies the target section
 * @returns section body text without the heading, or null when the section is absent
 */
export declare function extractSection(content: string, sectionName: string): string | null;
/**
 * Extract instruction file facts: existence, content, line count, and parsed sections.
 *
 * @param fs - project filesystem adapter used to read the instruction file
 * @param agent - agent profile that names the instruction file path
 * @returns instruction-file facts used by setup and harness checks
 */
export declare function extractInstructionFacts(fs: ReadonlyFS, agent: AgentProfile): AgentFacts["instruction"];
//# sourceMappingURL=instruction.d.ts.map