import type { ImportDiagnostic } from '@flighthq/importdiagnostics/contract'; import type { DisplayObject } from '@flighthq/scene2d/contract'; import type { SvgDocumentImportOptions } from './contract.scene2d-formats-types.ts'; /** * Reads an SVG document into a scene, with every element family Flight supports unless the caller names fewer. * * ★ THIS MODULE EXISTS TO OWN THE DEFAULT, AND NOTHING ELSE. `createScene2DFromSvgDocumentWithRegistry` does the work * and takes the registry as an argument; resolving `undefined` to the full family is the one thing that cannot live * there, because naming five handlers from the orchestrator would put the geometry, gradient, text and image code into * the module graph of every caller — including the caller who asked for containers and geometry only. * * Behaviour is unchanged for every existing caller: `createScene2DFromSvgDocument(source)` reads what it always read, * in the order it always read it, and the `elementHandlers` option narrows exactly as before. */ /** * Imports a static SVG document into a Flight display-object subtree. The returned container is * always allocated; malformed or non-SVG input yields an empty container and an opt-in Reject * diagnostic. The importer covers the document concerns above `@flighthq/path-formats`: SVG * geometry, inherited presentation styles, basic stylesheet selectors, transforms, gradients, * groups, nested SVG view boxes, `defs`/`use`, text, clip paths, and hard-mask degradation. * * SVG is consumed as a static authoring artifact. Animation, filters, scripting, foreign objects, * and live DOM behavior are deliberately not retained. Pass an `ImportDiagnostic[]` collector to * observe every recognized feature that was skipped or recovered. */ export declare function createScene2DFromSvgDocument(source: string, diagnostics?: ImportDiagnostic[], options?: Readonly): DisplayObject; //# sourceMappingURL=svgImport.d.ts.map