/** @packageDocumentation * @module Locaters */ import { ISchemaLocater, Schema, SchemaContext, SchemaInfo, SchemaKey, SchemaMatchType } from "@itwin/ecschema-metadata"; import { SchemaStringLocater } from "./SchemaStringLocater"; /** * A SchemaLocator implementation for locating and deserializing EC Schemas from XML strings * loaded in memory. * @beta */ export declare class SchemaXmlStringLocater extends SchemaStringLocater implements ISchemaLocater { /** * Constructs a SchemaKey based on the information in the Schema XML. * @param schemaXml The Schema XML as a string. */ getSchemaKey(schemaXml: string): SchemaKey; /** * Attempts to retrieve a Schema with the given SchemaKey by searching the configured * Schema strings. * @param key The SchemaKey of the Schema to retrieve. * @param matchType The SchemaMatchType. * @param context The SchemaContext that will control the lifetime of the schema and holds the schema's references, if they exist. */ getSchema(schemaKey: SchemaKey, matchType: SchemaMatchType, context: SchemaContext): Promise; /** * Gets the schema info which matches the provided SchemaKey. The schema info may be returned before the schema is fully loaded. * The fully loaded schema can be gotten later from the context using the getCachedSchema method. * @param schemaKey The SchemaKey describing the schema to get from the cache. * @param matchType The match type to use when locating the schema * @param context The SchemaContext that will control the lifetime of the schema and holds the schema's references, if they exist. */ getSchemaInfo(schemaKey: SchemaKey, matchType: SchemaMatchType, context: SchemaContext): Promise; /** * Attempts to retrieve a Schema with the given SchemaKey by searching the configured * Schema strings. * @param key The SchemaKey of the Schema to retrieve. * @param matchType The SchemaMatchType. * @param context The SchemaContext that will control the lifetime of the schema and holds the schema's references, if they exist. */ getSchemaSync(schemaKey: SchemaKey, matchType: SchemaMatchType, context: SchemaContext): Schema | undefined; /** * Parses a valid EC 2.0 version string and returns an ECVersion object. The second digit becomes the minor version, * and a zero is inserted as the 'write' digit. Example: "1.1" -> "1.0.1". * @param versionString A valid EC 2.0 version string of the format, 'RR.mm'. */ private fromECv2String; } //# sourceMappingURL=SchemaXmlStringLocater.d.ts.map