/** * DOCX renderer registry. * * Adapters are registered as async factories so a backend is only imported * when it is actually selected — choosing `docxjs` never loads * `@office-open/docx`, and a backend that cannot be loaded at all (an * `--omit=optional` install, a broken tree) surfaces as an actionable install * hint rather than a bare module-resolution failure. `statuses()` asks the * same question up front, so a discovery surface never advertises a renderer * that would fail on the first render. */ import { type RendererStatus } from '@json-to-office/shared/rendering'; import { type DocxRenderer, type DocxRendererId } from './types'; /** Resolve a renderer by id, defaulting to `docxjs`. */ export declare function resolveDocxRenderer(id?: DocxRendererId): Promise; /** Renderer ids registered for DOCX. */ export declare function docxRendererIds(): readonly DocxRendererId[]; /** * Every registered renderer with whether its backend can be loaded here. * * Registration is not availability: the factory only runs on selection, so an * id alone says nothing about whether the render behind it will work. Callers * that advertise renderers — `jto_info`, `jto_discover` — report this instead * of docxRendererIds() so a renderer that cannot run is never offered as one * that can. */ export declare function docxRendererStatuses(): Promise[]>; export declare function isDocxRendererId(value: string): value is DocxRendererId; //# sourceMappingURL=registry.d.ts.map