@tsonic/dotnet-types
Version:
TypeScript declarations and metadata for .NET 10.0 assemblies
309 lines (297 loc) • 8.91 kB
TypeScript
// Auto-generated by generatedts on 2025-11-02T09:57:54Z - 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 {
class Console {
static readonly In: System.IO.TextReader;
static InputEncoding: System.Text.Encoding;
static OutputEncoding: System.Text.Encoding;
static readonly KeyAvailable: boolean;
static readonly Out: System.IO.TextWriter;
static readonly Error: System.IO.TextWriter;
static readonly IsInputRedirected: boolean;
static readonly IsOutputRedirected: boolean;
static readonly IsErrorRedirected: boolean;
static CursorSize: int;
static readonly NumberLock: boolean;
static readonly CapsLock: boolean;
static BackgroundColor: System.ConsoleColor;
static ForegroundColor: System.ConsoleColor;
static BufferWidth: int;
static BufferHeight: int;
static WindowLeft: int;
static WindowTop: int;
static WindowWidth: int;
static WindowHeight: int;
static readonly LargestWindowWidth: int;
static readonly LargestWindowHeight: int;
static CursorVisible: boolean;
static CursorLeft: int;
static CursorTop: int;
static Title: string;
static TreatControlCAsInput: boolean;
static ReadKey(): System.ConsoleKeyInfo;
static ReadKey(intercept: boolean): System.ConsoleKeyInfo;
static ResetColor(): void;
static SetBufferSize(width: int, height: int): void;
static SetWindowPosition(left: int, top: int): void;
static SetWindowSize(width: int, height: int): void;
static GetCursorPosition(): System.ValueTuple<int, int>;
static Beep(): void;
static Beep(frequency: int, duration: int): void;
static MoveBufferArea(sourceLeft: int, sourceTop: int, sourceWidth: int, sourceHeight: int, targetLeft: int, targetTop: int): void;
static MoveBufferArea(sourceLeft: int, sourceTop: int, sourceWidth: int, sourceHeight: int, targetLeft: int, targetTop: int, sourceChar: number, sourceForeColor: System.ConsoleColor, sourceBackColor: System.ConsoleColor): void;
static Clear(): void;
static SetCursorPosition(left: int, top: int): void;
static OpenStandardInput(): System.IO.Stream;
static OpenStandardInput(bufferSize: int): System.IO.Stream;
static OpenStandardOutput(): System.IO.Stream;
static OpenStandardOutput(bufferSize: int): System.IO.Stream;
static OpenStandardError(): System.IO.Stream;
static OpenStandardError(bufferSize: int): System.IO.Stream;
static SetIn(newIn: System.IO.TextReader): void;
static SetOut(newOut: System.IO.TextWriter): void;
static SetError(newError: System.IO.TextWriter): void;
static Read(): int;
static ReadLine(): string;
static WriteLine(): void;
static WriteLine(value: boolean): void;
static WriteLine(value: number): void;
static WriteLine(buffer: ReadonlyArray<number>): void;
static WriteLine(buffer: ReadonlyArray<number>, index: int, count: int): void;
static WriteLine(value: decimal): void;
static WriteLine(value: double): void;
static WriteLine(value: float): void;
static WriteLine(value: int): void;
static WriteLine(value: uint): void;
static WriteLine(value: long): void;
static WriteLine(value: ulong): void;
static WriteLine(value: any): void;
static WriteLine(value: string): void;
static WriteLine(value: System.ReadOnlySpan<number>): void;
static WriteLine(format: string, arg0: any): void;
static WriteLine(format: string, arg0: any, arg1: any): void;
static WriteLine(format: string, arg0: any, arg1: any, arg2: any): void;
static WriteLine(format: string, ...arg: ReadonlyArray<any>): void;
static WriteLine(format: string, arg: System.ReadOnlySpan<any>): void;
static Write(format: string, arg0: any): void;
static Write(format: string, arg0: any, arg1: any): void;
static Write(format: string, arg0: any, arg1: any, arg2: any): void;
static Write(format: string, ...arg: ReadonlyArray<any>): void;
static Write(format: string, arg: System.ReadOnlySpan<any>): void;
static Write(value: boolean): void;
static Write(value: number): void;
static Write(buffer: ReadonlyArray<number>): void;
static Write(buffer: ReadonlyArray<number>, index: int, count: int): void;
static Write(value: double): void;
static Write(value: decimal): void;
static Write(value: float): void;
static Write(value: int): void;
static Write(value: uint): void;
static Write(value: long): void;
static Write(value: ulong): void;
static Write(value: any): void;
static Write(value: string): void;
static Write(value: System.ReadOnlySpan<number>): void;
}
class ConsoleCancelEventArgs extends System.EventArgs {
Cancel: boolean;
readonly SpecialKey: System.ConsoleSpecialKey;
}
class ConsoleCancelEventHandler extends System.MulticastDelegate implements System.ICloneable, System.Runtime.Serialization.ISerializable {
constructor(object: any, method: number);
Invoke(sender: any, e: System.ConsoleCancelEventArgs): void;
BeginInvoke(sender: any, e: System.ConsoleCancelEventArgs, callback: System.AsyncCallback, object: any): System.IAsyncResult;
EndInvoke(result: System.IAsyncResult): void;
}
enum ConsoleColor {
Black = 0,
DarkBlue = 1,
DarkGreen = 2,
DarkCyan = 3,
DarkRed = 4,
DarkMagenta = 5,
DarkYellow = 6,
Gray = 7,
DarkGray = 8,
Blue = 9,
Green = 10,
Cyan = 11,
Red = 12,
Magenta = 13,
Yellow = 14,
White = 15
}
enum ConsoleKey {
None = 0,
Backspace = 8,
Tab = 9,
Clear = 12,
Enter = 13,
Pause = 19,
Escape = 27,
Spacebar = 32,
PageUp = 33,
PageDown = 34,
End = 35,
Home = 36,
LeftArrow = 37,
UpArrow = 38,
RightArrow = 39,
DownArrow = 40,
Select = 41,
Print = 42,
Execute = 43,
PrintScreen = 44,
Insert = 45,
Delete = 46,
Help = 47,
D0 = 48,
D1 = 49,
D2 = 50,
D3 = 51,
D4 = 52,
D5 = 53,
D6 = 54,
D7 = 55,
D8 = 56,
D9 = 57,
A = 65,
B = 66,
C = 67,
D = 68,
E = 69,
F = 70,
G = 71,
H = 72,
I = 73,
J = 74,
K = 75,
L = 76,
M = 77,
N = 78,
O = 79,
P = 80,
Q = 81,
R = 82,
S = 83,
T = 84,
U = 85,
V = 86,
W = 87,
X = 88,
Y = 89,
Z = 90,
LeftWindows = 91,
RightWindows = 92,
Applications = 93,
Sleep = 95,
NumPad0 = 96,
NumPad1 = 97,
NumPad2 = 98,
NumPad3 = 99,
NumPad4 = 100,
NumPad5 = 101,
NumPad6 = 102,
NumPad7 = 103,
NumPad8 = 104,
NumPad9 = 105,
Multiply = 106,
Add = 107,
Separator = 108,
Subtract = 109,
Decimal = 110,
Divide = 111,
F1 = 112,
F2 = 113,
F3 = 114,
F4 = 115,
F5 = 116,
F6 = 117,
F7 = 118,
F8 = 119,
F9 = 120,
F10 = 121,
F11 = 122,
F12 = 123,
F13 = 124,
F14 = 125,
F15 = 126,
F16 = 127,
F17 = 128,
F18 = 129,
F19 = 130,
F20 = 131,
F21 = 132,
F22 = 133,
F23 = 134,
F24 = 135,
BrowserBack = 166,
BrowserForward = 167,
BrowserRefresh = 168,
BrowserStop = 169,
BrowserSearch = 170,
BrowserFavorites = 171,
BrowserHome = 172,
VolumeMute = 173,
VolumeDown = 174,
VolumeUp = 175,
MediaNext = 176,
MediaPrevious = 177,
MediaStop = 178,
MediaPlay = 179,
LaunchMail = 180,
LaunchMediaSelect = 181,
LaunchApp1 = 182,
LaunchApp2 = 183,
Oem1 = 186,
OemPlus = 187,
OemComma = 188,
OemMinus = 189,
OemPeriod = 190,
Oem2 = 191,
Oem3 = 192,
Oem4 = 219,
Oem5 = 220,
Oem6 = 221,
Oem7 = 222,
Oem8 = 223,
Oem102 = 226,
Process = 229,
Packet = 231,
Attention = 246,
CrSel = 247,
ExSel = 248,
EraseEndOfFile = 249,
Play = 250,
Zoom = 251,
NoName = 252,
Pa1 = 253,
OemClear = 254
}
class ConsoleKeyInfo implements System.IEquatable<System.ConsoleKeyInfo> {
constructor(keyChar: number, key: System.ConsoleKey, shift: boolean, alt: boolean, control: boolean);
readonly KeyChar: number;
readonly Key: System.ConsoleKey;
readonly Modifiers: System.ConsoleModifiers;
}
enum ConsoleModifiers {
None = 0,
Alt = 1,
Shift = 2,
Control = 4
}
enum ConsoleSpecialKey {
ControlC = 0,
ControlBreak = 1
}
}