// Public surface of the parser registry + format adapters (Epic #189, Issue #266). Exposed
// from the package root via `packages/keiko-local-knowledge/src/index.ts` so callers can
// import everything as `@oscharko-dev/keiko-local-knowledge`.
export { DEFAULT_MAX_BYTES, DEFAULT_MAX_UNITS, DEFAULT_TIMEOUT_MS, PARSER_ERROR_CODES, } from "./types.js";
export { buildParserOptions, createParserRegistry, registerParser, resolveParser, unsupportedParser, } from "./registry.js";
export { textParser } from "./text-parser.js";
export { jsonParser } from "./json-parser.js";
export { csvParser } from "./csv-parser.js";
export { htmlParser } from "./html-parser.js";
export { pdfParser } from "./pdf-parser.js";
export { docxParser } from "./docx-parser.js";
// Convenience: a registry pre-populated with every shipped adapter. Resolution order is
// JSON → CSV/TSV → HTML → text. Text registers last because its `matches` predicate is
// the most permissive (accepts any `text/*`); registering it first would shadow CSV and HTML.
import { csvParser } from "./csv-parser.js";
import { docxParser } from "./docx-parser.js";
import { htmlParser } from "./html-parser.js";
import { jsonParser } from "./json-parser.js";
import { pdfParser } from "./pdf-parser.js";
import { createParserRegistry, registerParser } from "./registry.js";
import { textParser } from "./text-parser.js";
export function createDefaultParserRegistry() {
    let registry = createParserRegistry();
    registry = registerParser(registry, jsonParser);
    registry = registerParser(registry, csvParser);
    registry = registerParser(registry, htmlParser);
    registry = registerParser(registry, pdfParser);
    registry = registerParser(registry, docxParser);
    // Text parser is registered last among the real adapters because its `matches` predicate
    // is the most permissive (it accepts any `text/*` media type), so it must not shadow the
    // structured adapters.
    registry = registerParser(registry, textParser);
    return registry;
}
// OCR adapter seam (Issue #202).
export { nullOcrAdapter, createOcrPipelineParser, } from "./ocr/index.js";
