import type { NonEntityCreateResult } from '@flighthq/entity/contract'; import type { ImportDiagnostic } from '@flighthq/importdiagnostics/contract'; import type { Path } from '@flighthq/path/contract'; import type { DisplayObject } from '@flighthq/scene2d/contract'; import type { RiveArtboardGraph, RiveArtboardImportContext, RiveCoreObject, RiveImportRegistry, RivePathRecord } from './contract.scene2d-formats-types.ts'; /** * Builds one Rive path component's geometry in its own local space. * * Rive keeps a cubic vertex's handles in **polar** form — an angle and a distance from the vertex — * rather than as absolute control points, and the three cubic kinds do not share a sign convention: * a mirrored or asymmetric vertex places its incoming handle by *subtracting* its vector, while a * detached vertex *adds* its own separately-stated one. Applying one rule to all three bends every * detached curve the wrong way. * * Returns null for a path kind this importer does not build. */ export declare function createRivePath(path: Readonly, artboard: Readonly, index: number, diagnostics?: ImportDiagnostic[]): Path | null; /** * One path's geometry in its owning shape's space, read fresh from the path's current property * values. * * Nothing is cached: an animated vertex, radius or size shows up because the record is rebuilt rather * than invalidated. The path's own transform is baked into the geometry here, because a path is not a * node of its own once imported — the shape above it carries the only transform left. * * Returns null when the path states no geometry, which a points path is entitled to do. */ export declare function createRivePathRecord(artboard: Readonly, index: number, diagnostics?: ImportDiagnostic[]): NonEntityCreateResult | null; /** * Files one path's geometry under the shape that owns it, and contributes no node of its own. * * Rive combines a shape's paths into one figure — that is how a hole cuts its parent — so a path that * became its own display object would break the compositing the format states. A path with no shape * ancestor has nothing to draw it, which makes it a malformed file rather than a shape of the format: * it is reported, because the geometry otherwise leaves no trace. */ export declare function importRivePathComponent(context: RiveArtboardImportContext, index: number): DisplayObject | null; /** * Registers path geometry: `Path` and every kind derived from it — parametric rectangles, ellipses, * stars, and point-authored paths alike — together with the vertices they are built from. * * Without this a shape imports with its paint and no geometry, so nothing draws. */ export declare function registerRivePathHandlers(registry: RiveImportRegistry): void; //# sourceMappingURL=riveShapePath.d.ts.map