UNPKG

@tsonic/dotnet-types

Version:

TypeScript declarations and metadata for .NET 10.0 assemblies

361 lines (328 loc) 20.5 kB
// Auto-generated by generatedts on 2025-11-02T09:57:24Z - do not edit by hand. type int = number & { __brand: "int" }; type uint = number & { __brand: "uint" }; type byte = number & { __brand: "byte" }; type sbyte = number & { __brand: "sbyte" }; type short = number & { __brand: "short" }; type ushort = number & { __brand: "ushort" }; type long = number & { __brand: "long" }; type ulong = number & { __brand: "ulong" }; type float = number & { __brand: "float" }; type double = number & { __brand: "double" }; type decimal = number & { __brand: "decimal" }; declare namespace System.Collections { class StructuralComparisons { static readonly StructuralComparer: System.Collections.IComparer; static readonly StructuralEqualityComparer: System.Collections.IEqualityComparer; } } declare namespace System.Collections.Generic { class Enumerator<T> implements System.Collections.Generic.IEnumerator<T>, System.IDisposable, System.Collections.IEnumerator, System.Runtime.Serialization.ISerializable, System.Runtime.Serialization.IDeserializationCallback { readonly Current: T; MoveNext(): boolean; Dispose(): void; } class Enumerator<TKey, TValue> implements System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey, TValue>>, System.IDisposable, System.Collections.IEnumerator, System.Collections.IDictionaryEnumerator { Current: System.Collections.Generic.KeyValuePair<TKey, TValue>; MoveNext(): boolean; } class Enumerator<TKey, TValue> implements System.Collections.Generic.IEnumerator<TKey>, System.IDisposable, System.Collections.IEnumerator { readonly Current: TKey; MoveNext(): boolean; } class Enumerator<TKey, TValue> implements System.Collections.Generic.IEnumerator<TValue>, System.IDisposable, System.Collections.IEnumerator { readonly Current: TValue; MoveNext(): boolean; } class Enumerator<TElement, TPriority> implements System.Collections.Generic.IEnumerator<System.ValueTuple<TElement, TPriority>>, System.IDisposable, System.Collections.IEnumerator { readonly Current: System.ValueTuple<TElement, TPriority>; Dispose(): void; MoveNext(): boolean; } class Enumerator<TKey, TValue> implements System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey, TValue>>, System.IDisposable, System.Collections.IEnumerator, System.Collections.IDictionaryEnumerator { readonly Current: System.Collections.Generic.KeyValuePair<TKey, TValue>; MoveNext(): boolean; Dispose(): void; } class Enumerator<TKey, TValue> implements System.Collections.Generic.IEnumerator<TKey>, System.IDisposable, System.Collections.IEnumerator { readonly Current: TKey; Dispose(): void; MoveNext(): boolean; } class Enumerator<TKey, TValue> implements System.Collections.Generic.IEnumerator<TValue>, System.IDisposable, System.Collections.IEnumerator { readonly Current: TValue; Dispose(): void; MoveNext(): boolean; } class Enumerator<T> implements System.Collections.Generic.IEnumerator<T>, System.IDisposable, System.Collections.IEnumerator, System.Runtime.Serialization.ISerializable, System.Runtime.Serialization.IDeserializationCallback { readonly Current: T; MoveNext(): boolean; Dispose(): void; } class Enumerator<T> implements System.Collections.Generic.IEnumerator<T>, System.IDisposable, System.Collections.IEnumerator { readonly Current: T; Dispose(): void; MoveNext(): boolean; } class KeyCollection<TKey, TValue> implements System.Collections.Generic.IList<TKey>, System.Collections.Generic.ICollection<TKey>, ReadonlyArray<TKey>, System.Collections.IEnumerable, ReadonlyArray<TKey>, ReadonlyArray<TKey>, System.Collections.IList, System.Collections.ICollection { readonly Count: int; Contains(key: TKey): boolean; CopyTo(array: ReadonlyArray<TKey>, arrayIndex: int): void; GetEnumerator(): System.Collections.Generic.Enumerator<TKey, TValue>; } class KeyCollection<TKey, TValue> implements System.Collections.Generic.ICollection<TKey>, ReadonlyArray<TKey>, System.Collections.IEnumerable, System.Collections.ICollection, ReadonlyArray<TKey> { constructor(dictionary: System.Collections.Generic.SortedDictionary<TKey, TValue>); readonly Count: int; GetEnumerator(): System.Collections.Generic.Enumerator<TKey, TValue>; CopyTo(array: ReadonlyArray<TKey>, index: int): void; Contains(item: TKey): boolean; } class KeyList<TKey, TValue> implements System.Collections.Generic.IList<TKey>, System.Collections.Generic.ICollection<TKey>, ReadonlyArray<TKey>, System.Collections.IEnumerable, System.Collections.ICollection { readonly Count: int; readonly IsReadOnly: boolean; Item: TKey; Add(key: TKey): void; Clear(): void; Contains(key: TKey): boolean; CopyTo(array: ReadonlyArray<TKey>, arrayIndex: int): void; Insert(index: int, value: TKey): void; GetEnumerator(): System.Collections.Generic.IEnumerator<TKey>; IndexOf(key: TKey): int; Remove(key: TKey): boolean; RemoveAt(index: int): void; } class KeyValuePairComparer<TKey, TValue> extends System.Collections.Generic.Comparer<System.Collections.Generic.KeyValuePair<TKey, TValue>> implements System.Collections.IComparer, System.Collections.Generic.IComparer<System.Collections.Generic.KeyValuePair<TKey, TValue>> { constructor(keyComparer: System.Collections.Generic.IComparer<TKey>); Compare(x: System.Collections.Generic.KeyValuePair<TKey, TValue>, y: System.Collections.Generic.KeyValuePair<TKey, TValue>): int; } class LinkedList<T> implements System.Collections.Generic.ICollection<T>, ReadonlyArray<T>, System.Collections.IEnumerable, System.Collections.ICollection, ReadonlyArray<T>, System.Runtime.Serialization.ISerializable, System.Runtime.Serialization.IDeserializationCallback { constructor(); constructor(collection: ReadonlyArray<T>); readonly Count: int; readonly First: System.Collections.Generic.LinkedListNode<T>; readonly Last: System.Collections.Generic.LinkedListNode<T>; AddAfter(node: System.Collections.Generic.LinkedListNode<T>, value: T): System.Collections.Generic.LinkedListNode<T>; AddAfter(node: System.Collections.Generic.LinkedListNode<T>, newNode: System.Collections.Generic.LinkedListNode<T>): void; AddBefore(node: System.Collections.Generic.LinkedListNode<T>, value: T): System.Collections.Generic.LinkedListNode<T>; AddBefore(node: System.Collections.Generic.LinkedListNode<T>, newNode: System.Collections.Generic.LinkedListNode<T>): void; AddFirst(value: T): System.Collections.Generic.LinkedListNode<T>; AddFirst(node: System.Collections.Generic.LinkedListNode<T>): void; AddLast(value: T): System.Collections.Generic.LinkedListNode<T>; AddLast(node: System.Collections.Generic.LinkedListNode<T>): void; Clear(): void; Contains(value: T): boolean; CopyTo(array: ReadonlyArray<T>, index: int): void; Find(value: T): System.Collections.Generic.LinkedListNode<T>; FindLast(value: T): System.Collections.Generic.LinkedListNode<T>; GetEnumerator(): System.Collections.Generic.Enumerator<T>; Remove(value: T): boolean; Remove(node: System.Collections.Generic.LinkedListNode<T>): void; RemoveFirst(): void; RemoveLast(): void; GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void; OnDeserialization(sender: any): void; } class LinkedListNode<T> { constructor(value: T); readonly List: System.Collections.Generic.LinkedList<T>; readonly Next: System.Collections.Generic.LinkedListNode<>; readonly Previous: System.Collections.Generic.LinkedListNode<>; Value: T; readonly ValueRef: T; } class OrderedDictionary<TKey, TValue> implements System.Collections.Generic.IDictionary<TKey, TValue>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey, TValue>>, ReadonlyArray<System.Collections.Generic.KeyValuePair<TKey, TValue>>, System.Collections.IEnumerable, System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>, ReadonlyArray<System.Collections.Generic.KeyValuePair<TKey, TValue>>, System.Collections.IDictionary, System.Collections.ICollection, System.Collections.Generic.IList<System.Collections.Generic.KeyValuePair<TKey, TValue>>, ReadonlyArray<System.Collections.Generic.KeyValuePair<TKey, TValue>>, System.Collections.IList { constructor(); constructor(capacity: int); constructor(comparer: System.Collections.Generic.IEqualityComparer<TKey>); constructor(capacity: int, comparer: System.Collections.Generic.IEqualityComparer<TKey>); constructor(dictionary: System.Collections.Generic.IDictionary<TKey, TValue>); constructor(dictionary: System.Collections.Generic.IDictionary<TKey, TValue>, comparer: System.Collections.Generic.IEqualityComparer<TKey>); constructor(collection: ReadonlyArray<System.Collections.Generic.KeyValuePair<TKey, TValue>>); constructor(collection: ReadonlyArray<System.Collections.Generic.KeyValuePair<TKey, TValue>>, comparer: System.Collections.Generic.IEqualityComparer<TKey>); readonly Capacity: int; readonly Comparer: System.Collections.Generic.IEqualityComparer<TKey>; readonly Count: int; readonly Keys: System.Collections.Generic.KeyCollection<TKey, TValue>; readonly Values: System.Collections.Generic.ValueCollection<TKey, TValue>; Item: TValue; Add(key: TKey, value: TValue): void; TryAdd(key: TKey, value: TValue): boolean; TryAdd(key: TKey, value: TValue, index: int): boolean; Clear(): void; ContainsKey(key: TKey): boolean; ContainsValue(value: TValue): boolean; GetAt(index: int): System.Collections.Generic.KeyValuePair<TKey, TValue>; IndexOf(key: TKey): int; Insert(index: int, key: TKey, value: TValue): void; Remove(key: TKey): boolean; Remove(key: TKey, value: TValue): boolean; RemoveAt(index: int): void; SetAt(index: int, value: TValue): void; SetAt(index: int, key: TKey, value: TValue): void; EnsureCapacity(capacity: int): int; TrimExcess(): void; TrimExcess(capacity: int): void; TryGetValue(key: TKey, value: TValue): boolean; TryGetValue(key: TKey, value: TValue, index: int): boolean; GetEnumerator(): System.Collections.Generic.Enumerator<TKey, TValue>; } class PriorityQueue<TElement, TPriority> { constructor(); constructor(initialCapacity: int); constructor(comparer: System.Collections.Generic.IComparer<TPriority>); constructor(initialCapacity: int, comparer: System.Collections.Generic.IComparer<TPriority>); constructor(items: ReadonlyArray<System.ValueTuple<TElement, TPriority>>); constructor(items: ReadonlyArray<System.ValueTuple<TElement, TPriority>>, comparer: System.Collections.Generic.IComparer<TPriority>); readonly Count: int; readonly Capacity: int; readonly Comparer: System.Collections.Generic.IComparer<TPriority>; readonly UnorderedItems: System.Collections.Generic.UnorderedItemsCollection<TElement, TPriority>; Enqueue(element: TElement, priority: TPriority): void; Peek(): TElement; Dequeue(): TElement; DequeueEnqueue(element: TElement, priority: TPriority): TElement; TryDequeue(element: TElement, priority: TPriority): boolean; TryPeek(element: TElement, priority: TPriority): boolean; EnqueueDequeue(element: TElement, priority: TPriority): TElement; EnqueueRange(items: ReadonlyArray<System.ValueTuple<TElement, TPriority>>): void; EnqueueRange(elements: ReadonlyArray<TElement>, priority: TPriority): void; Remove(element: TElement, removedElement: TElement, priority: TPriority, equalityComparer?: System.Collections.Generic.IEqualityComparer<TElement>): boolean; Clear(): void; EnsureCapacity(capacity: int): int; TrimExcess(): void; } class SortedDictionary<TKey, TValue> implements System.Collections.Generic.IDictionary<TKey, TValue>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey, TValue>>, ReadonlyArray<System.Collections.Generic.KeyValuePair<TKey, TValue>>, System.Collections.IEnumerable, System.Collections.IDictionary, System.Collections.ICollection, System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>, ReadonlyArray<System.Collections.Generic.KeyValuePair<TKey, TValue>> { constructor(); constructor(dictionary: System.Collections.Generic.IDictionary<TKey, TValue>); constructor(dictionary: System.Collections.Generic.IDictionary<TKey, TValue>, comparer: System.Collections.Generic.IComparer<TKey>); constructor(comparer: System.Collections.Generic.IComparer<TKey>); Item: TValue; readonly Count: int; readonly Comparer: System.Collections.Generic.IComparer<TKey>; readonly Keys: System.Collections.Generic.KeyCollection<TKey, TValue>; readonly Values: System.Collections.Generic.ValueCollection<TKey, TValue>; Add(key: TKey, value: TValue): void; Clear(): void; ContainsKey(key: TKey): boolean; ContainsValue(value: TValue): boolean; CopyTo(array: ReadonlyArray<System.Collections.Generic.KeyValuePair<TKey, TValue>>, index: int): void; GetEnumerator(): System.Collections.Generic.Enumerator<TKey, TValue>; Remove(key: TKey): boolean; TryGetValue(key: TKey, value: TValue): boolean; } class SortedList<TKey, TValue> implements System.Collections.Generic.IDictionary<TKey, TValue>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey, TValue>>, ReadonlyArray<System.Collections.Generic.KeyValuePair<TKey, TValue>>, System.Collections.IEnumerable, System.Collections.IDictionary, System.Collections.ICollection, System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>, ReadonlyArray<System.Collections.Generic.KeyValuePair<TKey, TValue>> { constructor(); constructor(capacity: int); constructor(comparer: System.Collections.Generic.IComparer<TKey>); constructor(capacity: int, comparer: System.Collections.Generic.IComparer<TKey>); constructor(dictionary: System.Collections.Generic.IDictionary<TKey, TValue>); constructor(dictionary: System.Collections.Generic.IDictionary<TKey, TValue>, comparer: System.Collections.Generic.IComparer<TKey>); Capacity: int; readonly Comparer: System.Collections.Generic.IComparer<TKey>; readonly Count: int; readonly Keys: System.Collections.Generic.IList<TKey>; readonly Values: System.Collections.Generic.IList<TValue>; Item: TValue; Add(key: TKey, value: TValue): void; Clear(): void; ContainsKey(key: TKey): boolean; ContainsValue(value: TValue): boolean; GetValueAtIndex(index: int): TValue; SetValueAtIndex(index: int, value: TValue): void; GetEnumerator(): System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey, TValue>>; GetKeyAtIndex(index: int): TKey; IndexOfKey(key: TKey): int; IndexOfValue(value: TValue): int; TryGetValue(key: TKey, value: TValue): boolean; RemoveAt(index: int): void; Remove(key: TKey): boolean; TrimExcess(): void; } class SortedSet<T> implements System.Collections.Generic.ISet<T>, System.Collections.Generic.ICollection<T>, ReadonlyArray<T>, System.Collections.IEnumerable, System.Collections.ICollection, ReadonlyArray<T>, System.Collections.Generic.IReadOnlySet<T>, System.Runtime.Serialization.ISerializable, System.Runtime.Serialization.IDeserializationCallback { constructor(); constructor(comparer: System.Collections.Generic.IComparer<T>); constructor(collection: ReadonlyArray<T>); constructor(collection: ReadonlyArray<T>, comparer: System.Collections.Generic.IComparer<T>); readonly Count: int; readonly Comparer: System.Collections.Generic.IComparer<T>; readonly Min: T; readonly Max: T; Add(item: T): boolean; Remove(item: T): boolean; Clear(): void; Contains(item: T): boolean; CopyTo(array: ReadonlyArray<T>): void; CopyTo(array: ReadonlyArray<T>, index: int): void; CopyTo(array: ReadonlyArray<T>, index: int, count: int): void; GetEnumerator(): System.Collections.Generic.Enumerator<T>; static CreateSetComparer(): System.Collections.Generic.IEqualityComparer<System.Collections.Generic.SortedSet<>>; static CreateSetComparer(memberEqualityComparer: System.Collections.Generic.IEqualityComparer<T>): System.Collections.Generic.IEqualityComparer<System.Collections.Generic.SortedSet<>>; UnionWith(other: ReadonlyArray<T>): void; IntersectWith(other: ReadonlyArray<T>): void; ExceptWith(other: ReadonlyArray<T>): void; SymmetricExceptWith(other: ReadonlyArray<T>): void; IsSubsetOf(other: ReadonlyArray<T>): boolean; IsProperSubsetOf(other: ReadonlyArray<T>): boolean; IsSupersetOf(other: ReadonlyArray<T>): boolean; IsProperSupersetOf(other: ReadonlyArray<T>): boolean; SetEquals(other: ReadonlyArray<T>): boolean; Overlaps(other: ReadonlyArray<T>): boolean; RemoveWhere(match: System.Predicate<T>): int; Reverse(): ReadonlyArray<T>; GetViewBetween(lowerValue: T, upperValue: T): System.Collections.Generic.SortedSet<>; TryGetValue(equalValue: T, actualValue: T): boolean; } class Stack<T> implements ReadonlyArray<T>, System.Collections.IEnumerable, System.Collections.ICollection, ReadonlyArray<T> { constructor(); constructor(capacity: int); constructor(collection: ReadonlyArray<T>); readonly Count: int; readonly Capacity: int; Clear(): void; Contains(item: T): boolean; CopyTo(array: ReadonlyArray<T>, arrayIndex: int): void; GetEnumerator(): System.Collections.Generic.Enumerator<T>; TrimExcess(): void; TrimExcess(capacity: int): void; Peek(): T; TryPeek(result: T): boolean; Pop(): T; TryPop(result: T): boolean; Push(item: T): void; EnsureCapacity(capacity: int): int; ToArray(): ReadonlyArray<T>; } class TreeSet<T> extends System.Collections.Generic.SortedSet<T> implements System.Collections.Generic.ISet<T>, System.Collections.Generic.ICollection<T>, ReadonlyArray<T>, System.Collections.IEnumerable, System.Collections.ICollection, ReadonlyArray<T>, System.Collections.Generic.IReadOnlySet<T>, System.Runtime.Serialization.ISerializable, System.Runtime.Serialization.IDeserializationCallback { constructor(); constructor(comparer: System.Collections.Generic.IComparer<T>); } class UnorderedItemsCollection<TElement, TPriority> implements ReadonlyArray<System.ValueTuple<TElement, TPriority>>, ReadonlyArray<System.ValueTuple<TElement, TPriority>>, System.Collections.IEnumerable, System.Collections.ICollection { readonly Count: int; GetEnumerator(): System.Collections.Generic.Enumerator<TElement, TPriority>; } class ValueCollection<TKey, TValue> implements System.Collections.Generic.IList<TValue>, System.Collections.Generic.ICollection<TValue>, ReadonlyArray<TValue>, System.Collections.IEnumerable, ReadonlyArray<TValue>, ReadonlyArray<TValue>, System.Collections.IList, System.Collections.ICollection { readonly Count: int; CopyTo(array: ReadonlyArray<TValue>, arrayIndex: int): void; GetEnumerator(): System.Collections.Generic.Enumerator<TKey, TValue>; } class ValueCollection<TKey, TValue> implements System.Collections.Generic.ICollection<TValue>, ReadonlyArray<TValue>, System.Collections.IEnumerable, System.Collections.ICollection, ReadonlyArray<TValue> { constructor(dictionary: System.Collections.Generic.SortedDictionary<TKey, TValue>); readonly Count: int; GetEnumerator(): System.Collections.Generic.Enumerator<TKey, TValue>; CopyTo(array: ReadonlyArray<TValue>, index: int): void; } class ValueList<TKey, TValue> implements System.Collections.Generic.IList<TValue>, System.Collections.Generic.ICollection<TValue>, ReadonlyArray<TValue>, System.Collections.IEnumerable, System.Collections.ICollection { readonly Count: int; readonly IsReadOnly: boolean; Item: TValue; Add(key: TValue): void; Clear(): void; Contains(value: TValue): boolean; CopyTo(array: ReadonlyArray<TValue>, arrayIndex: int): void; Insert(index: int, value: TValue): void; GetEnumerator(): System.Collections.Generic.IEnumerator<TValue>; IndexOf(value: TValue): int; Remove(value: TValue): boolean; RemoveAt(index: int): void; } }