import { type Diagnostic } from './types.js'; import type { W2dPrimitive } from './document.js'; export interface W2dBounds { minX: number; minY: number; maxX: number; maxY: number; } export interface LegacyAsciiDwfParseResult { primitives: W2dPrimitive[]; diagnostics: Diagnostic[]; bounds?: W2dBounds; version?: string; background?: string; } /** Returns true for the pre-DWF-6 readable WHIP!/W2D stream produced by tools such as AutoCAD R14. */ export declare function isLegacyAsciiDwf(text: string): boolean; /** * Parses the readable single-byte WHIP!/W2D opcode form used by early DWF files. * * The format is a stream rather than a line-oriented language: counted point sets can * wrap across physical lines, and extended ASCII operands can contain nested parentheses. * A cursor-based scanner is therefore required for correct parsing and bounded O(n) work. */ export declare function parseLegacyAsciiDwf(text: string, sourcePath: string): LegacyAsciiDwfParseResult;