import type { RawChild, RawNode } from '@ooxml-sanad/schema'; type WrapMode = 'none' | 'square' | 'tight' | 'through' | 'topAndBottom'; export type VmlUnit = 'pt' | 'px' | 'in' | 'mm' | 'cm' | 'pc' | 'twip' | 'emu'; export interface VmlStyle { readonly properties: Readonly>; readonly position?: string; readonly left?: number; readonly top?: number; readonly width?: number; readonly height?: number; readonly zIndex?: number; readonly rotation?: number; readonly horizontalRelative?: string; readonly verticalRelative?: string; } export declare function parseVmlLength(value: string | number, bareUnit?: VmlUnit): number; export declare function parseVmlStyle(style: string | undefined, bareUnit?: VmlUnit): VmlStyle; export type VmlPathCommand = { readonly op: 'moveTo' | 'lineTo' | 'cubicTo'; readonly values: readonly number[]; } | { readonly op: 'close' | 'end' | 'arcTo'; readonly values: readonly number[]; }; /** Parses VML's compact m/l/c/x/e path grammar into path-builder commands. */ export declare function parseVmlPath(path: string | undefined): VmlPathCommand[]; export declare function vmlAttr(node: RawNode, localName: string): string | undefined; export declare function mapVmlWrap(type: string | undefined): WrapMode; export interface VmlTextboxResult { readonly content?: T; readonly truncated: boolean; readonly depth: number; } /** Re-enters WML layout for v:textbox content, with a hard recursion bound. */ export declare function layoutVmlTextbox(node: RawNode, layout: (children: readonly RawChild[], depth: number) => T, depth?: number, maxDepth?: number): VmlTextboxResult; export {}; //# sourceMappingURL=vml.d.ts.map