UNPKG

@file-type/xml

Version:
19 lines (18 loc) 476 B
import type { FileTypeResult, Detector } from 'file-type'; interface IXmlTextDetectorOptions { fullScan?: boolean; } export declare class XmlTextDetector { private options; private firstTag; private parser; private nesting; onEnd: boolean; fileType?: FileTypeResult; constructor(options?: IXmlTextDetectorOptions); write(text: string): void; close(): void; isValid(): boolean; } export declare const detectXml: Detector; export {};