import type { XmlElement } from '@flighthq/xml/contract'; export declare function parseSvgCoordinate(value: string | null, fallback: number): number; export declare function parseSvgCssNumber(value: string | undefined, fallback: number): number; export declare function parseSvgLength(value: string | null, fallback: number): number; export declare function parseSvgNumberList(value: string): number[]; export declare function parseUrlReference(value: string | null): string | null; /** * Reading numbers, names and references out of an SVG element's attributes. * * ★ BEDROCK EVERY SVG FEATURE STANDS ON, which is why it is one module and not part of any of them. A geometry * element's `x`, a gradient's `href`, a `use`'s offset and a text run's `dx` are the same three questions asked of * different attributes, and each of the five element families would otherwise carry its own copy of the answer. * * `svgLocalName` drops the namespace prefix because SVG in the wild is written both ways — `` and `` are * the same element — and every dispatch in this importer keys on the local name. */ export declare function svgAttribute(element: Readonly, name: string): string | null; export declare function svgFirstNumber(value: string | null, fallback: number): number; export declare function svgLocalName(name: string): string; export declare function svgNumberAttribute(element: Readonly, name: string, fallback: number): number; export declare function svgOptionalNumberAttribute(element: Readonly, name: string): number | null; export declare function visitSvgElements(element: Readonly, visitor: (element: Readonly) => void): void; //# sourceMappingURL=svgXml.d.ts.map