import type { ImportDiagnostic } from '@flighthq/importdiagnostics/contract'; import type { RiveCoreObject, RiveImportRegistry, RiveStateMachineDescriptor } from './contract.scene2d-formats-types.ts'; /** * Reads an artboard's state machines as plain data. * * The charter is explicit that Rive's state-machine *runtime* — inputs driving transitions — is a * separate future cell and never a codec concern, so this interprets nothing. It reports the states, * the transitions between them, and the inputs by name, and leaves what to do with them to whatever * consumes the descriptor. * * References keep the values the file states rather than being resolved into positions. Rive uses * several distinct id spaces — a component's parent, an interpolator, and an asset each index * something different — so a descriptor that guessed at a space would be worse than one that reports * what is written. */ export declare function createRiveStateMachines(objects: readonly Readonly[], range: Readonly<{ end: number; start: number; }>, diagnostics?: ImportDiagnostic[]): RiveStateMachineDescriptor[]; /** * Registers the artboard's state machines, read as plain data. * * A state machine is not a component: it shares the file stream with the artboard but sits outside * its numbering, which is why this is a pass over the artboard's stream span rather than a component * handler. Nothing here is interpreted or driven — the machine's runtime is a separate cell — so * leaving the family unregistered costs the descriptors and nothing else. */ export declare function registerRiveStateMachineHandlers(registry: RiveImportRegistry): void; //# sourceMappingURL=riveStateMachine.d.ts.map