import * as cxml from 'cxml'; import { Namespace } from './Namespace'; import { Scope } from './Scope'; import * as schema from '../schema'; /** XML parser context, holding definitions of all imported namespaces. */ export declare class Context extends cxml.ContextBase { constructor(schemaContext: schema.Context); registerNamespace(name: string, url?: string): Namespace; getPrimitiveScope(): Scope; /** Initialize special namespace containing primitive types. */ private populatePrimitives(primitiveSpace, schemaContext); /** Scope containing XML primitive types. * Parent of global scopes of all other namespaces. */ private primitiveScope; /** Namespace containing XML primitive types. */ primitiveSpace: Namespace; /** The official "xml" namespace defining commonly used types. */ xmlSpace: Namespace; /** The official "xsd" namespace used for schema parsing. */ xsdSpace: Namespace; }