@npm9912/s-gml
Version: 
TypeScript library for parsing, converting, and validating GML 2.1.2/3.0/3.2
24 lines (23 loc) • 816 B
TypeScript
type XsdFetcher = (url: string) => Promise<string>;
/**
 * Validates GML XML against XSD schema using xmllint-wasm
 * Browser-compatible version (no native xmllint support)
 * @param xml - GML XML string to validate
 * @param version - GML version ('2.1.2' or '3.2')
 * @returns Promise<boolean> - true if valid, false otherwise
 */
export declare function validateGml(xml: string, version: string): Promise<boolean>;
/**
 * Set a custom XSD fetcher for testing
 * @param fetcher - Custom fetcher function or null to reset
 */
export declare function __setXsdFetcher(fetcher: XsdFetcher | null): void;
/**
 * Clear the XSD cache
 */
export declare function __clearXsdCache(): void;
declare function loadXsd(url: string): Promise<string>;
export declare const __internal: {
    loadXsd: typeof loadXsd;
};
export {};