import type { ParsedDxf } from './types.ts'; import type { Readable } from 'readable-stream'; /** Options for {@link DxfParser} construction. */ export declare class DxfParserOptions { /** Encoding label. * See https://developer.mozilla.org/en-US/docs/Web/API/Encoding_API/Encodings */ encoding: string; /** Throw `TypeError` when encountering invalid encoded data when true. When false, the decoder * will substitute malformed data with a replacement character. */ encodingFailureFatal: boolean; /** Thumbnail image format. * - 'base64': Base64-encoded string (default, ready for web display) * - 'hex': Raw hexadecimal string * - 'buffer': Node.js Buffer object */ thumbnailImageFormat: 'base64' | 'hex' | 'buffer'; } export declare class DxfParser extends EventTarget { private readonly _decoder; private readonly _options; constructor(options?: Partial); parseSync(dxfString: string, isDebugMode?: boolean): ParsedDxf; parseStream(stream: Readable): Promise; parseFromUrl(url: string, init?: RequestInit | undefined): Promise; private parseAll; } //# sourceMappingURL=DxfParser.d.ts.map