UNPKG

@tsonic/dotnet-pure

Version:

TypeScript type definitions for .NET 10 BCL (Base Class Library) - CLR naming

370 lines (303 loc) 14.4 kB
// Generated by tsbindgen - Architecture // Namespace: System.Xml.XPath // Assembly: System.Private.Xml, System.Private.Xml.Linq, System.Xml.XPath.XDocument // Branded primitive types are sourced from @tsonic/types import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types'; // Import types from other namespaces import type { IDictionary_2, IEnumerable_1 } from "../../System.Collections.Generic/internal/index.js"; import * as System_Collections_Internal from "../../System.Collections/internal/index.js"; import type { IComparer, IDictionary, IEnumerable, IEnumerator, IEqualityComparer } from "../../System.Collections/internal/index.js"; import type { Stream, TextReader } from "../../System.IO/internal/index.js"; import type { MethodBase } from "../../System.Reflection/internal/index.js"; import * as System_Runtime_Serialization_Internal from "../../System.Runtime.Serialization/internal/index.js"; import type { ISerializable, SerializationInfo, StreamingContext } from "../../System.Runtime.Serialization/internal/index.js"; import type { XElement, XNode } from "../../System.Xml.Linq/internal/index.js"; import type { IXmlSchemaInfo, ValidationEventHandler, XmlSchemaSet, XmlSchemaType } from "../../System.Xml.Schema/internal/index.js"; import * as System_Xml_Internal from "../../System.Xml/internal/index.js"; import type { IXmlNamespaceResolver, XmlNamespaceManager, XmlNamespaceScope, XmlNameTable, XmlNodeOrder, XmlReader, XmlSpace, XmlWriter } from "../../System.Xml/internal/index.js"; import * as System_Internal from "../../System/internal/index.js"; import type { Boolean as ClrBoolean, DateTime, Double, Enum, Exception, ICloneable, IComparable, IConvertible, IFormatProvider, IFormattable, Int32, Int64, ISpanFormattable, Object as ClrObject, String as ClrString, SystemException, Type, TypeCode, Void } from "../../System/internal/index.js"; // CLROf<T> - Maps ergonomic primitives to their CLR types for generic constraints // This utility is used ONLY in generic type arguments to satisfy CLR interface constraints // Value positions (parameters, return types) use lowercase primitives for ergonomics export type CLROf<T> = T extends sbyte ? System_Internal.SByte : T extends short ? System_Internal.Int16 : T extends int ? System_Internal.Int32 : T extends long ? System_Internal.Int64 : T extends int128 ? System_Internal.Int128 : T extends nint ? System_Internal.IntPtr : T extends byte ? System_Internal.Byte : T extends ushort ? System_Internal.UInt16 : T extends uint ? System_Internal.UInt32 : T extends ulong ? System_Internal.UInt64 : T extends uint128 ? System_Internal.UInt128 : T extends nuint ? System_Internal.UIntPtr : T extends half ? System_Internal.Half : T extends float ? System_Internal.Single : T extends double ? System_Internal.Double : T extends decimal ? System_Internal.Decimal : T extends char ? System_Internal.Char : T extends boolean ? System_Internal.Boolean : T extends string ? System_Internal.String : T; // Identity fallback for non-primitive types export enum XmlCaseOrder { None = 0, UpperFirst = 1, LowerFirst = 2 } export enum XmlDataType { Text = 1, Number = 2 } export enum XmlSortOrder { Ascending = 1, Descending = 2 } export enum XPathNamespaceScope { All = 0, ExcludeXml = 1, Local = 2 } export enum XPathNodeType { Root = 0, Element = 1, Attribute = 2, Namespace = 3, Text = 4, SignificantWhitespace = 5, Whitespace = 6, ProcessingInstruction = 7, Comment = 8, All = 9 } export enum XPathResultType { Number = 0, String = 1, Boolean = 2, NodeSet = 3, Navigator = 1, Any = 5, Error = 6 } export interface IXPathNavigable$instance { CreateNavigator(): XPathNavigator; } export type IXPathNavigable = IXPathNavigable$instance; export interface XPathDocument$instance { CreateNavigator(): XPathNavigator; } export const XPathDocument: { new(reader: XmlReader): XPathDocument$instance; new(reader: XmlReader, space: XmlSpace): XPathDocument$instance; new(textReader: TextReader): XPathDocument$instance; new(stream: Stream): XPathDocument$instance; new(uri: string): XPathDocument$instance; new(uri: string, space: XmlSpace): XPathDocument$instance; }; export interface __XPathDocument$views { As_IXPathNavigable(): IXPathNavigable$instance; } export interface XPathDocument$instance extends IXPathNavigable$instance {} export type XPathDocument = XPathDocument$instance & __XPathDocument$views; export interface XPathException$instance extends SystemException { readonly Message: string; GetObjectData(info: SerializationInfo, context: StreamingContext): void; } export const XPathException: { new(): XPathException$instance; new(message: string): XPathException$instance; new(message: string, innerException: Exception): XPathException$instance; }; export interface __XPathException$views { As_ISerializable(): System_Runtime_Serialization_Internal.ISerializable$instance; } export type XPathException = XPathException$instance & __XPathException$views; export interface XPathExpression$instance { readonly Expression: string; readonly ReturnType: XPathResultType; AddSort(expr: unknown, comparer: IComparer): void; AddSort(expr: unknown, order: XmlSortOrder, caseOrder: XmlCaseOrder, lang: string, dataType: XmlDataType): void; Clone(): XPathExpression; SetContext(nsManager: XmlNamespaceManager): void; SetContext(nsResolver: IXmlNamespaceResolver): void; } export const XPathExpression: { Compile(xpath: string, nsResolver: IXmlNamespaceResolver): XPathExpression; Compile(xpath: string): XPathExpression; }; export type XPathExpression = XPathExpression$instance; export interface XPathItem$instance { readonly IsNode: boolean; readonly TypedValue: unknown; readonly Value: string; readonly ValueAsBoolean: boolean; readonly ValueAsDateTime: DateTime; readonly ValueAsDouble: double; readonly ValueAsInt: int; readonly ValueAsLong: long; readonly ValueType: Type; readonly XmlType: XmlSchemaType; ValueAs(returnType: Type): unknown; ValueAs(returnType: Type, nsResolver: IXmlNamespaceResolver): unknown; } export const XPathItem: { }; export type XPathItem = XPathItem$instance; export interface XPathNavigator$instance extends XPathItem { readonly BaseURI: string; readonly CanEdit: boolean; readonly HasAttributes: boolean; readonly HasChildren: boolean; InnerXml: string; readonly IsEmptyElement: boolean; readonly IsNode: boolean; readonly LocalName: string; readonly Name: string; readonly NamespaceURI: string; readonly NameTable: XmlNameTable; readonly NodeType: XPathNodeType; OuterXml: string; readonly Prefix: string; readonly SchemaInfo: IXmlSchemaInfo; readonly TypedValue: unknown; readonly UnderlyingObject: unknown; readonly ValueAsBoolean: boolean; readonly ValueAsDateTime: DateTime; readonly ValueAsDouble: double; readonly ValueAsInt: int; readonly ValueAsLong: long; readonly ValueType: Type; readonly XmlLang: string; readonly XmlType: XmlSchemaType; AppendChild(): XmlWriter; AppendChild(newChild: string): void; AppendChild(newChild: XmlReader): void; AppendChild(newChild: XPathNavigator): void; AppendChildElement(prefix: string, localName: string, namespaceURI: string, value: string): void; CheckValidity(schemas: XmlSchemaSet, validationEventHandler: ValidationEventHandler): boolean; Clone(): XPathNavigator; ComparePosition(nav: XPathNavigator): XmlNodeOrder; Compile(xpath: string): XPathExpression; CreateAttribute(prefix: string, localName: string, namespaceURI: string, value: string): void; CreateAttributes(): XmlWriter; CreateNavigator(): XPathNavigator; DeleteRange(lastSiblingToDelete: XPathNavigator): void; DeleteSelf(): void; Evaluate(xpath: string): unknown; Evaluate(xpath: string, resolver: IXmlNamespaceResolver): unknown; Evaluate(expr: XPathExpression): unknown; Evaluate(expr: XPathExpression, context: XPathNodeIterator): unknown; GetAttribute(localName: string, namespaceURI: string): string; GetNamespace(name: string): string; GetNamespacesInScope(scope: XmlNamespaceScope): IDictionary_2<CLROf<string>, CLROf<string>>; InsertAfter(): XmlWriter; InsertAfter(newSibling: string): void; InsertAfter(newSibling: XmlReader): void; InsertAfter(newSibling: XPathNavigator): void; InsertBefore(): XmlWriter; InsertBefore(newSibling: string): void; InsertBefore(newSibling: XmlReader): void; InsertBefore(newSibling: XPathNavigator): void; InsertElementAfter(prefix: string, localName: string, namespaceURI: string, value: string): void; InsertElementBefore(prefix: string, localName: string, namespaceURI: string, value: string): void; IsDescendant(nav: XPathNavigator): boolean; IsSamePosition(other: XPathNavigator): boolean; LookupNamespace(prefix: string): string; LookupPrefix(namespaceURI: string): string; Matches(expr: XPathExpression): boolean; Matches(xpath: string): boolean; MoveTo(other: XPathNavigator): boolean; MoveToAttribute(localName: string, namespaceURI: string): boolean; MoveToChild(localName: string, namespaceURI: string): boolean; MoveToChild(type_: XPathNodeType): boolean; MoveToFirst(): boolean; MoveToFirstAttribute(): boolean; MoveToFirstChild(): boolean; MoveToFirstNamespace(namespaceScope: XPathNamespaceScope): boolean; MoveToFirstNamespace(): boolean; MoveToFollowing(localName: string, namespaceURI: string): boolean; MoveToFollowing(localName: string, namespaceURI: string, end: XPathNavigator): boolean; MoveToFollowing(type_: XPathNodeType): boolean; MoveToFollowing(type_: XPathNodeType, end: XPathNavigator): boolean; MoveToId(id: string): boolean; MoveToNamespace(name: string): boolean; MoveToNext(): boolean; MoveToNext(localName: string, namespaceURI: string): boolean; MoveToNext(type_: XPathNodeType): boolean; MoveToNextAttribute(): boolean; MoveToNextNamespace(namespaceScope: XPathNamespaceScope): boolean; MoveToNextNamespace(): boolean; MoveToParent(): boolean; MoveToPrevious(): boolean; MoveToRoot(): void; PrependChild(): XmlWriter; PrependChild(newChild: string): void; PrependChild(newChild: XmlReader): void; PrependChild(newChild: XPathNavigator): void; PrependChildElement(prefix: string, localName: string, namespaceURI: string, value: string): void; ReadSubtree(): XmlReader; ReplaceRange(lastSiblingToReplace: XPathNavigator): XmlWriter; ReplaceSelf(newNode: string): void; ReplaceSelf(newNode: XmlReader): void; ReplaceSelf(newNode: XPathNavigator): void; Select(xpath: string): XPathNodeIterator; Select(xpath: string, resolver: IXmlNamespaceResolver): XPathNodeIterator; Select(expr: XPathExpression): XPathNodeIterator; SelectAncestors(type_: XPathNodeType, matchSelf: boolean): XPathNodeIterator; SelectAncestors(name: string, namespaceURI: string, matchSelf: boolean): XPathNodeIterator; SelectChildren(type_: XPathNodeType): XPathNodeIterator; SelectChildren(name: string, namespaceURI: string): XPathNodeIterator; SelectDescendants(type_: XPathNodeType, matchSelf: boolean): XPathNodeIterator; SelectDescendants(name: string, namespaceURI: string, matchSelf: boolean): XPathNodeIterator; SelectSingleNode(xpath: string): XPathNavigator; SelectSingleNode(xpath: string, resolver: IXmlNamespaceResolver): XPathNavigator; SelectSingleNode(expression: XPathExpression): XPathNavigator; SetTypedValue(typedValue: unknown): void; SetValue(value: string): void; ToString(): string; ValueAs(returnType: Type, nsResolver: IXmlNamespaceResolver): unknown; ValueAs(returnType: Type): unknown; WriteSubtree(writer: XmlWriter): void; } export const XPathNavigator: { readonly NavigatorComparer: IEqualityComparer; }; export interface __XPathNavigator$views { As_ICloneable(): System_Internal.ICloneable$instance; As_IXmlNamespaceResolver(): System_Xml_Internal.IXmlNamespaceResolver$instance; As_IXPathNavigable(): IXPathNavigable$instance; } export interface XPathNavigator$instance extends System_Xml_Internal.IXmlNamespaceResolver$instance, IXPathNavigable$instance {} export type XPathNavigator = XPathNavigator$instance & __XPathNavigator$views; export interface XPathNodeIterator$instance { readonly Count: int; readonly Current: XPathNavigator; readonly CurrentPosition: int; Clone(): XPathNodeIterator; GetEnumerator(): IEnumerator; MoveNext(): boolean; } export const XPathNodeIterator: { }; export interface __XPathNodeIterator$views { As_IEnumerable(): System_Collections_Internal.IEnumerable$instance; As_ICloneable(): System_Internal.ICloneable$instance; } export interface XPathNodeIterator$instance extends System_Collections_Internal.IEnumerable$instance {} export type XPathNodeIterator = XPathNodeIterator$instance & __XPathNodeIterator$views; export abstract class Extensions$instance { static CreateNavigator(node: XNode, nameTable: XmlNameTable): XPathNavigator; static CreateNavigator(node: XNode): XPathNavigator; static XPathEvaluate(node: XNode, expression: string, resolver: IXmlNamespaceResolver): unknown; static XPathEvaluate(node: XNode, expression: string): unknown; static XPathSelectElement(node: XNode, expression: string, resolver: IXmlNamespaceResolver): XElement; static XPathSelectElement(node: XNode, expression: string): XElement; static XPathSelectElements(node: XNode, expression: string, resolver: IXmlNamespaceResolver): IEnumerable_1<XElement>; static XPathSelectElements(node: XNode, expression: string): IEnumerable_1<XElement>; } export type Extensions = Extensions$instance; export abstract class XDocumentExtensions$instance { static ToXPathNavigable(node: XNode): IXPathNavigable; } export type XDocumentExtensions = XDocumentExtensions$instance;