@tsonic/dotnet-types
Version:
TypeScript declarations and metadata for .NET 10.0 assemblies
275 lines (252 loc) • 17.4 kB
TypeScript
// Auto-generated by generatedts on 2025-11-02T09:57:37Z - 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.Text.RegularExpressions {
class Capture {
Index: int;
Length: int;
readonly Value: string;
readonly ValueSpan: System.ReadOnlySpan<number>;
}
class CaptureCollection implements System.Collections.Generic.IList<System.Text.RegularExpressions.Capture>, System.Collections.Generic.ICollection<System.Text.RegularExpressions.Capture>, ReadonlyArray<System.Text.RegularExpressions.Capture>, System.Collections.IEnumerable, ReadonlyArray<System.Text.RegularExpressions.Capture>, ReadonlyArray<System.Text.RegularExpressions.Capture>, System.Collections.IList, System.Collections.ICollection {
readonly IsReadOnly: boolean;
readonly Count: int;
readonly Item: System.Text.RegularExpressions.Capture;
readonly IsSynchronized: boolean;
readonly SyncRoot: any;
GetEnumerator(): System.Collections.IEnumerator;
CopyTo(array: System.Array, arrayIndex: int): void;
CopyTo(array: ReadonlyArray<System.Text.RegularExpressions.Capture>, arrayIndex: int): void;
}
class GeneratedRegexAttribute extends System.Attribute {
constructor(pattern: string);
constructor(pattern: string, options: System.Text.RegularExpressions.RegexOptions);
constructor(pattern: string, options: System.Text.RegularExpressions.RegexOptions, cultureName: string);
constructor(pattern: string, options: System.Text.RegularExpressions.RegexOptions, matchTimeoutMilliseconds: int);
constructor(pattern: string, options: System.Text.RegularExpressions.RegexOptions, matchTimeoutMilliseconds: int, cultureName: string);
readonly Pattern: string;
readonly Options: System.Text.RegularExpressions.RegexOptions;
readonly MatchTimeoutMilliseconds: int;
readonly CultureName: string;
}
class Group extends System.Text.RegularExpressions.Capture {
readonly Success: boolean;
readonly Name: string;
readonly Captures: System.Text.RegularExpressions.CaptureCollection;
static Synchronized(inner: System.Text.RegularExpressions.Group): System.Text.RegularExpressions.Group;
}
class GroupCollection implements System.Collections.Generic.IList<System.Text.RegularExpressions.Group>, System.Collections.Generic.ICollection<System.Text.RegularExpressions.Group>, ReadonlyArray<System.Text.RegularExpressions.Group>, System.Collections.IEnumerable, ReadonlyArray<System.Text.RegularExpressions.Group>, ReadonlyArray<System.Text.RegularExpressions.Group>, System.Collections.IList, System.Collections.ICollection, System.Collections.Generic.IReadOnlyDictionary<string, System.Text.RegularExpressions.Group>, ReadonlyArray<System.Collections.Generic.KeyValuePair<string, System.Text.RegularExpressions.Group>>, ReadonlyArray<System.Collections.Generic.KeyValuePair<string, System.Text.RegularExpressions.Group>> {
readonly IsReadOnly: boolean;
readonly Count: int;
readonly Item: System.Text.RegularExpressions.Group;
readonly Item: System.Text.RegularExpressions.Group;
readonly IsSynchronized: boolean;
readonly SyncRoot: any;
readonly Keys: ReadonlyArray<string>;
readonly Values: ReadonlyArray<System.Text.RegularExpressions.Group>;
GetEnumerator(): System.Collections.IEnumerator;
CopyTo(array: System.Array, arrayIndex: int): void;
CopyTo(array: ReadonlyArray<System.Text.RegularExpressions.Group>, arrayIndex: int): void;
TryGetValue(key: string, value: System.Text.RegularExpressions.Group): boolean;
ContainsKey(key: string): boolean;
}
class Match extends System.Text.RegularExpressions.Group {
static readonly Empty: System.Text.RegularExpressions.Match;
readonly Groups: System.Text.RegularExpressions.GroupCollection;
NextMatch(): System.Text.RegularExpressions.Match;
Result(replacement: string): string;
static Synchronized(inner: System.Text.RegularExpressions.Match): System.Text.RegularExpressions.Match;
}
class MatchCollection implements System.Collections.Generic.IList<System.Text.RegularExpressions.Match>, System.Collections.Generic.ICollection<System.Text.RegularExpressions.Match>, ReadonlyArray<System.Text.RegularExpressions.Match>, System.Collections.IEnumerable, ReadonlyArray<System.Text.RegularExpressions.Match>, ReadonlyArray<System.Text.RegularExpressions.Match>, System.Collections.IList, System.Collections.ICollection {
readonly IsReadOnly: boolean;
readonly Count: int;
readonly Item: System.Text.RegularExpressions.Match;
readonly IsSynchronized: boolean;
readonly SyncRoot: any;
GetEnumerator(): System.Collections.IEnumerator;
CopyTo(array: System.Array, arrayIndex: int): void;
CopyTo(array: ReadonlyArray<System.Text.RegularExpressions.Match>, arrayIndex: int): void;
}
class MatchEvaluator extends System.MulticastDelegate implements System.ICloneable, System.Runtime.Serialization.ISerializable {
constructor(object: any, method: number);
Invoke(match: System.Text.RegularExpressions.Match): string;
BeginInvoke(match: System.Text.RegularExpressions.Match, callback: System.AsyncCallback, object: any): System.IAsyncResult;
EndInvoke(result: System.IAsyncResult): string;
}
class Regex implements System.Runtime.Serialization.ISerializable {
constructor(pattern: string);
constructor(pattern: string, options: System.Text.RegularExpressions.RegexOptions);
constructor(pattern: string, options: System.Text.RegularExpressions.RegexOptions, matchTimeout: System.TimeSpan);
readonly Options: System.Text.RegularExpressions.RegexOptions;
readonly RightToLeft: boolean;
static CacheSize: int;
readonly MatchTimeout: System.TimeSpan;
static CompileToAssembly(regexinfos: ReadonlyArray<System.Text.RegularExpressions.RegexCompilationInfo>, assemblyname: System.Reflection.AssemblyName): void;
static CompileToAssembly(regexinfos: ReadonlyArray<System.Text.RegularExpressions.RegexCompilationInfo>, assemblyname: System.Reflection.AssemblyName, attributes: ReadonlyArray<System.Reflection.Emit.CustomAttributeBuilder>): void;
static CompileToAssembly(regexinfos: ReadonlyArray<System.Text.RegularExpressions.RegexCompilationInfo>, assemblyname: System.Reflection.AssemblyName, attributes: ReadonlyArray<System.Reflection.Emit.CustomAttributeBuilder>, resourceFile: string): void;
static Escape(str: string): string;
static Unescape(str: string): string;
GetGroupNames(): ReadonlyArray<string>;
GetGroupNumbers(): ReadonlyArray<int>;
GroupNameFromNumber(i: int): string;
GroupNumberFromName(name: string): int;
Count(input: string): int;
Count(input: System.ReadOnlySpan<number>): int;
Count(input: System.ReadOnlySpan<number>, startat: int): int;
static Count(input: string, pattern: string): int;
static Count(input: string, pattern: string, options: System.Text.RegularExpressions.RegexOptions): int;
static Count(input: string, pattern: string, options: System.Text.RegularExpressions.RegexOptions, matchTimeout: System.TimeSpan): int;
static Count(input: System.ReadOnlySpan<number>, pattern: string): int;
static Count(input: System.ReadOnlySpan<number>, pattern: string, options: System.Text.RegularExpressions.RegexOptions): int;
static Count(input: System.ReadOnlySpan<number>, pattern: string, options: System.Text.RegularExpressions.RegexOptions, matchTimeout: System.TimeSpan): int;
static IsMatch(input: string, pattern: string): boolean;
static IsMatch(input: System.ReadOnlySpan<number>, pattern: string): boolean;
static IsMatch(input: string, pattern: string, options: System.Text.RegularExpressions.RegexOptions): boolean;
static IsMatch(input: System.ReadOnlySpan<number>, pattern: string, options: System.Text.RegularExpressions.RegexOptions): boolean;
static IsMatch(input: string, pattern: string, options: System.Text.RegularExpressions.RegexOptions, matchTimeout: System.TimeSpan): boolean;
static IsMatch(input: System.ReadOnlySpan<number>, pattern: string, options: System.Text.RegularExpressions.RegexOptions, matchTimeout: System.TimeSpan): boolean;
IsMatch(input: string): boolean;
IsMatch(input: string, startat: int): boolean;
IsMatch(input: System.ReadOnlySpan<number>): boolean;
IsMatch(input: System.ReadOnlySpan<number>, startat: int): boolean;
static Match(input: string, pattern: string): System.Text.RegularExpressions.Match;
static Match(input: string, pattern: string, options: System.Text.RegularExpressions.RegexOptions): System.Text.RegularExpressions.Match;
static Match(input: string, pattern: string, options: System.Text.RegularExpressions.RegexOptions, matchTimeout: System.TimeSpan): System.Text.RegularExpressions.Match;
Match(input: string): System.Text.RegularExpressions.Match;
Match(input: string, startat: int): System.Text.RegularExpressions.Match;
Match(input: string, beginning: int, length: int): System.Text.RegularExpressions.Match;
static Matches(input: string, pattern: string): System.Text.RegularExpressions.MatchCollection;
static Matches(input: string, pattern: string, options: System.Text.RegularExpressions.RegexOptions): System.Text.RegularExpressions.MatchCollection;
static Matches(input: string, pattern: string, options: System.Text.RegularExpressions.RegexOptions, matchTimeout: System.TimeSpan): System.Text.RegularExpressions.MatchCollection;
Matches(input: string): System.Text.RegularExpressions.MatchCollection;
Matches(input: string, startat: int): System.Text.RegularExpressions.MatchCollection;
static Replace(input: string, pattern: string, replacement: string): string;
static Replace(input: string, pattern: string, replacement: string, options: System.Text.RegularExpressions.RegexOptions): string;
static Replace(input: string, pattern: string, replacement: string, options: System.Text.RegularExpressions.RegexOptions, matchTimeout: System.TimeSpan): string;
Replace(input: string, replacement: string): string;
Replace(input: string, replacement: string, count: int): string;
Replace(input: string, replacement: string, count: int, startat: int): string;
static Replace(input: string, pattern: string, evaluator: System.Text.RegularExpressions.MatchEvaluator): string;
static Replace(input: string, pattern: string, evaluator: System.Text.RegularExpressions.MatchEvaluator, options: System.Text.RegularExpressions.RegexOptions): string;
static Replace(input: string, pattern: string, evaluator: System.Text.RegularExpressions.MatchEvaluator, options: System.Text.RegularExpressions.RegexOptions, matchTimeout: System.TimeSpan): string;
Replace(input: string, evaluator: System.Text.RegularExpressions.MatchEvaluator): string;
Replace(input: string, evaluator: System.Text.RegularExpressions.MatchEvaluator, count: int): string;
Replace(input: string, evaluator: System.Text.RegularExpressions.MatchEvaluator, count: int, startat: int): string;
static Split(input: string, pattern: string): ReadonlyArray<string>;
static Split(input: string, pattern: string, options: System.Text.RegularExpressions.RegexOptions): ReadonlyArray<string>;
static Split(input: string, pattern: string, options: System.Text.RegularExpressions.RegexOptions, matchTimeout: System.TimeSpan): ReadonlyArray<string>;
Split(input: string): ReadonlyArray<string>;
Split(input: string, count: int): ReadonlyArray<string>;
Split(input: string, count: int, startat: int): ReadonlyArray<string>;
static EnumerateMatches(input: System.ReadOnlySpan<number>, pattern: string): System.Text.RegularExpressions.Regex.ValueMatchEnumerator;
static EnumerateMatches(input: System.ReadOnlySpan<number>, pattern: string, options: System.Text.RegularExpressions.RegexOptions): System.Text.RegularExpressions.Regex.ValueMatchEnumerator;
static EnumerateMatches(input: System.ReadOnlySpan<number>, pattern: string, options: System.Text.RegularExpressions.RegexOptions, matchTimeout: System.TimeSpan): System.Text.RegularExpressions.Regex.ValueMatchEnumerator;
EnumerateMatches(input: System.ReadOnlySpan<number>): System.Text.RegularExpressions.Regex.ValueMatchEnumerator;
EnumerateMatches(input: System.ReadOnlySpan<number>, startat: int): System.Text.RegularExpressions.Regex.ValueMatchEnumerator;
static EnumerateSplits(input: System.ReadOnlySpan<number>, pattern: string): System.Text.RegularExpressions.Regex.ValueSplitEnumerator;
static EnumerateSplits(input: System.ReadOnlySpan<number>, pattern: string, options: System.Text.RegularExpressions.RegexOptions): System.Text.RegularExpressions.Regex.ValueSplitEnumerator;
static EnumerateSplits(input: System.ReadOnlySpan<number>, pattern: string, options: System.Text.RegularExpressions.RegexOptions, matchTimeout: System.TimeSpan): System.Text.RegularExpressions.Regex.ValueSplitEnumerator;
EnumerateSplits(input: System.ReadOnlySpan<number>): System.Text.RegularExpressions.Regex.ValueSplitEnumerator;
EnumerateSplits(input: System.ReadOnlySpan<number>, count: int): System.Text.RegularExpressions.Regex.ValueSplitEnumerator;
EnumerateSplits(input: System.ReadOnlySpan<number>, count: int, startat: int): System.Text.RegularExpressions.Regex.ValueSplitEnumerator;
}
class RegexCompilationInfo {
constructor(pattern: string, options: System.Text.RegularExpressions.RegexOptions, name: string, fullnamespace: string, ispublic: boolean);
constructor(pattern: string, options: System.Text.RegularExpressions.RegexOptions, name: string, fullnamespace: string, ispublic: boolean, matchTimeout: System.TimeSpan);
IsPublic: boolean;
MatchTimeout: System.TimeSpan;
Name: string;
Namespace: string;
Options: System.Text.RegularExpressions.RegexOptions;
Pattern: string;
}
class RegexMatchTimeoutException extends System.TimeoutException implements System.Runtime.Serialization.ISerializable {
constructor(regexInput: string, regexPattern: string, matchTimeout: System.TimeSpan);
constructor();
constructor(message: string);
constructor(message: string, inner: System.Exception);
readonly Input: string;
readonly Pattern: string;
readonly MatchTimeout: System.TimeSpan;
}
enum RegexOptions {
None = 0,
IgnoreCase = 1,
Multiline = 2,
ExplicitCapture = 4,
Compiled = 8,
Singleline = 16,
IgnorePatternWhitespace = 32,
RightToLeft = 64,
ECMAScript = 256,
CultureInvariant = 512,
NonBacktracking = 1024
}
enum RegexParseError {
Unknown = 0,
AlternationHasTooManyConditions = 1,
AlternationHasMalformedCondition = 2,
InvalidUnicodePropertyEscape = 3,
MalformedUnicodePropertyEscape = 4,
UnrecognizedEscape = 5,
UnrecognizedControlCharacter = 6,
MissingControlCharacter = 7,
InsufficientOrInvalidHexDigits = 8,
QuantifierOrCaptureGroupOutOfRange = 9,
UndefinedNamedReference = 10,
UndefinedNumberedReference = 11,
MalformedNamedReference = 12,
UnescapedEndingBackslash = 13,
UnterminatedComment = 14,
InvalidGroupingConstruct = 15,
AlternationHasNamedCapture = 16,
AlternationHasComment = 17,
AlternationHasMalformedReference = 18,
AlternationHasUndefinedReference = 19,
CaptureGroupNameInvalid = 20,
CaptureGroupOfZero = 21,
UnterminatedBracket = 22,
ExclusionGroupNotLast = 23,
ReversedCharacterRange = 24,
ShorthandClassInCharacterRange = 25,
InsufficientClosingParentheses = 26,
ReversedQuantifierRange = 27,
NestedQuantifiersNotParenthesized = 28,
QuantifierAfterNothing = 29,
InsufficientOpeningParentheses = 30,
UnrecognizedUnicodeProperty = 31
}
class RegexParseException extends System.ArgumentException implements System.Runtime.Serialization.ISerializable {
readonly Error: System.Text.RegularExpressions.RegexParseError;
readonly Offset: int;
GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
}
class RegexRunner {
static CharInClass(ch: number, charClass: string): boolean;
}
class RegexRunnerFactory {
}
class ValueMatch {
readonly Index: int;
readonly Length: int;
}
class ValueMatchEnumerator implements System.Collections.Generic.IEnumerator<System.Text.RegularExpressions.ValueMatch>, System.IDisposable, System.Collections.IEnumerator {
readonly Current: System.Text.RegularExpressions.ValueMatch;
GetEnumerator(): System.Text.RegularExpressions.Regex.ValueMatchEnumerator;
MoveNext(): boolean;
}
class ValueSplitEnumerator implements System.Collections.Generic.IEnumerator<System.Range>, System.IDisposable, System.Collections.IEnumerator {
readonly Current: System.Range;
GetEnumerator(): System.Text.RegularExpressions.Regex.ValueSplitEnumerator;
MoveNext(): boolean;
}
}