/**
 * Constitution loader — reads AGENTS.md or CLAUDE.md from a project root.
 *
 * Every agent should read the project constitution before acting.
 * Search order: AGENTS.md > agents.md > CLAUDE.md > claude.md
 * Returns structured content with parsed markdown sections.
 */
export interface ConstitutionSection {
    /** The heading text (without the # prefix) */
    heading: string;
    /** The body content under this heading */
    content: string;
    /** Heading level (1 = #, 2 = ##, 3 = ###) */
    level: number;
}
export interface ConstitutionResult {
    /** Raw file content */
    content: string;
    /** Filename that was found (e.g. "AGENTS.md") */
    source: string;
    /** Parsed markdown sections */
    sections?: ConstitutionSection[];
}
/**
 * Load the project constitution from the given directory.
 *
 * Searches for AGENTS.md, agents.md, CLAUDE.md, claude.md (in that order).
 * Returns null if no constitution file is found.
 */
export declare function loadConstitution(projectDir: string): Promise<ConstitutionResult | null>;
//# sourceMappingURL=constitution.d.ts.map