import type { XMLDocument } from '@xml-tools/ast'; import type { MetadataElement, Range } from '@sap-ux/odata-annotation-core-types'; /** * Traverses the XML document and collects metadata element definitions. * * @param uri Uri of the document. * @param document XML document containing metadata. * @returns an array of MetadataElements extracted from the XML document. */ export declare function convertMetadataDocument(uri: string, document: XMLDocument): MetadataElement[]; export interface V2Annotation { target: MetadataElement; name: string; nameRange?: Range; value: string; valueRange?: Range; range?: Range; } /** * Converts an OData V2 metadata XML document, returning metadata elements and inline sap:* annotations. * * @param uri - URI of the metadata document * @param document - Parsed XML document * @returns Tuple of [MetadataElement[], V2Annotation[]] */ export declare function convertMetadataDocumentV2(uri: string, document: XMLDocument): [MetadataElement[], V2Annotation[]]; //# sourceMappingURL=metadata.d.ts.map