/** * @fileoverview Dialect registry — singleton map from dialect id to * implementation. Initialized in `setup()` with the built-in dialects; * future plugins can register additional ones before `createApp()` returns. * Lookups never throw — unknown ids fall back to the `spec` dialect so a * stale env override or typo can't crash a tool call mid-flight. * * @module services/brapi-dialect/registry */ import type { BrapiDialect } from './types.js'; /** Register a dialect. Last-write-wins on id collision. */ export declare function registerDialect(dialect: BrapiDialect): void; /** * Look up a registered dialect by id. Falls back to the `spec` (passthrough) * dialect when the id is unknown — keeps misconfiguration loud (the dialect * still adapts its translations) while avoiding hard failures. */ export declare function getDialectById(id: string): BrapiDialect; /** Wire the built-in dialects. Idempotent — safe to call multiple times. */ export declare function initBrapiDialectRegistry(): void; /** Test-only — clear all registrations between suites. */ export declare function resetBrapiDialectRegistry(): void; /** Test-only — list registered ids. */ export declare function listRegisteredDialectIds(): string[]; //# sourceMappingURL=registry.d.ts.map