/**
 * NERF file parser — native Rust implementation.
 *
 * Parses `.nerf/` directory markdown files containing YAML-like frontmatter
 * and structured sections. Replaces the JS regex-based parser for
 * performance-critical batch operations.
 */
import type { BatchParseResult, FrontmatterResult, NativeRoadmap, SectionResult } from "./types.js";
export type { BatchParseResult, FrontmatterResult, NativeBoundaryMapEntry, NativeRoadmap, NativeRoadmapSlice, ParsedNerfFile, SectionResult, } from "./types.js";
/**
 * Parse YAML-like frontmatter from markdown content.
 *
 * Returns `{ metadata, body }` where `metadata` is the parsed key-value map.
 */
export declare function parseFrontmatter(content: string): FrontmatterResult;
/**
 * Extract a section from markdown content by heading name.
 *
 * @param content  Markdown content to search.
 * @param heading  Heading text to match (without the `#` prefix).
 * @param level    Heading level (default 2 for `##`).
 */
export declare function extractSection(content: string, heading: string, level?: number): SectionResult;
/**
 * Extract all sections at a given heading level.
 *
 * Returns a map of heading names to their content.
 */
export declare function extractAllSections(content: string, level?: number): Record<string, string>;
/**
 * Batch-parse all `.md` files in a `.nerf/` directory tree.
 *
 * Reads and parses all markdown files under the given directory.
 * Each file gets frontmatter parsing and section extraction.
 */
export declare function batchParseNerfFiles(directory: string): BatchParseResult;
/**
 * Parse a roadmap file's content into structured data.
 *
 * Extracts title, vision, success criteria, slices (with risk/depends),
 * and boundary map entries.
 */
export declare function parseRoadmapFile(content: string): NativeRoadmap;
/**
 * Query JSONL files in a directory with filters applied in native Rust.
 *
 * @param directory  Path to directory containing *.jsonl files.
 * @param filtersJson  JSON string with optional filter fields: flowId, eventType, rule, unitId, after, before.
 * @returns Array of matching entries.
 */
export declare function queryJsonlFiles(directory: string, filtersJson: string): unknown[];
