import type { ImportDiagnostic } from '@flighthq/importdiagnostics/contract'; import type { RequirementSetRaw as RequirementSet } from '@flighthq/requirement/contract'; /** The namespace every Rive `document.format` requirement key carries. */ export declare const RIVE_REQUIREMENT_KEY_NAMESPACE = "riv"; /** * Build-time inventory of what one `.riv` file asks a build to support: one `document.format` requirement per * distinct handler family the file's objects actually resolve to. * * ★ KEYED BY THE FAMILY A TYPE RESOLVES TO, NOT BY THE TYPE PRESENT IN THE FILE. Rive behaviour is inherited * and `getRiveCoreObjectHandler` walks the ancestor chain, so the family that reads an object is usually not * named by the object's own type. Rectangle's chain is the one to keep in mind, because it is not the obvious * one: Rectangle -> ParametricPath -> Path -> Node -> ... , so a file full of Rectangles is read by the PATH * family, not by Shape. Emitting `riv.Rectangle` would name something no implementation claims and no row * could satisfy, turning a correctly-handled file into a reported gap. This resolves the chain the same way * the importer does, so the inventory answers the question a build actually has: which families to register. * * A type that reaches NO registered ancestor keeps its own name (`riv.`, or a stable * `Unknown()` label for a key this object model does not define). That is deliberate: such an object is * one this import does not read, and it must surface as a gap rather than resolve to a family that would not * have handled it. * * ★ THE FAMILY ROOTS COME FROM THE SHIPPED REGISTRARS, NEVER A TRANSCRIBED TABLE. `registerAllRiveHandlers` * installs them, so the set is read back off a throwaway registry — which means a family that gains or loses a * core type changes this inventory on the same edit, and a hand-copied list of 368 object-model keys never * exists to fall out of date. The kernel argument is irrelevant to WHICH keys are registered, so a stub stands * in for it: nothing here imports or runs a path-boolean implementation. * * Contract lane only: build-time analysis input, not something a running app asks for. */ export declare function parseRiveRequirements(source: Readonly, diagnostics?: ImportDiagnostic[]): RequirementSet; //# sourceMappingURL=riveRequirements.d.ts.map