@tsonic/dotnet-types
Version:
TypeScript declarations and metadata for .NET 10.0 assemblies
193 lines (178 loc) • 11 kB
TypeScript
// Auto-generated by generatedts on 2025-11-02T09:57:34Z - 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.IO.Compression {
enum CompressionLevel {
Optimal = 0,
Fastest = 1,
NoCompression = 2,
SmallestSize = 3
}
enum CompressionMode {
Decompress = 0,
Compress = 1
}
class DeflateStream extends System.IO.Stream implements System.IDisposable, System.IAsyncDisposable {
constructor(stream: System.IO.Stream, mode: System.IO.Compression.CompressionMode);
constructor(stream: System.IO.Stream, mode: System.IO.Compression.CompressionMode, leaveOpen: boolean);
constructor(stream: System.IO.Stream, compressionLevel: System.IO.Compression.CompressionLevel);
constructor(stream: System.IO.Stream, compressionLevel: System.IO.Compression.CompressionLevel, leaveOpen: boolean);
constructor(stream: System.IO.Stream, compressionOptions: System.IO.Compression.ZLibCompressionOptions, leaveOpen?: boolean);
readonly BaseStream: System.IO.Stream;
readonly CanRead: boolean;
readonly CanWrite: boolean;
readonly CanSeek: boolean;
readonly Length: long;
Position: long;
Flush(): void;
FlushAsync(cancellationToken: System.Threading.CancellationToken): System.Threading.Tasks.Task;
Seek(offset: long, origin: System.IO.SeekOrigin): long;
SetLength(value: long): void;
ReadByte(): int;
Read(buffer: ReadonlyArray<byte>, offset: int, count: int): int;
Read(buffer: System.Span<byte>): int;
BeginRead(buffer: ReadonlyArray<byte>, offset: int, count: int, asyncCallback: System.AsyncCallback, asyncState: any): System.IAsyncResult;
EndRead(asyncResult: System.IAsyncResult): int;
ReadAsync(buffer: ReadonlyArray<byte>, offset: int, count: int, cancellationToken: System.Threading.CancellationToken): Promise<int>;
ReadAsync(buffer: System.Memory<byte>, cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask<int>;
Write(buffer: ReadonlyArray<byte>, offset: int, count: int): void;
WriteByte(value: byte): void;
Write(buffer: System.ReadOnlySpan<byte>): void;
DisposeAsync(): System.Threading.Tasks.ValueTask;
BeginWrite(buffer: ReadonlyArray<byte>, offset: int, count: int, asyncCallback: System.AsyncCallback, asyncState: any): System.IAsyncResult;
EndWrite(asyncResult: System.IAsyncResult): void;
WriteAsync(buffer: ReadonlyArray<byte>, offset: int, count: int, cancellationToken: System.Threading.CancellationToken): System.Threading.Tasks.Task;
WriteAsync(buffer: System.ReadOnlyMemory<byte>, cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask;
CopyTo(destination: System.IO.Stream, bufferSize: int): void;
CopyToAsync(destination: System.IO.Stream, bufferSize: int, cancellationToken: System.Threading.CancellationToken): System.Threading.Tasks.Task;
}
class GZipStream extends System.IO.Stream implements System.IDisposable, System.IAsyncDisposable {
constructor(stream: System.IO.Stream, mode: System.IO.Compression.CompressionMode);
constructor(stream: System.IO.Stream, mode: System.IO.Compression.CompressionMode, leaveOpen: boolean);
constructor(stream: System.IO.Stream, compressionLevel: System.IO.Compression.CompressionLevel);
constructor(stream: System.IO.Stream, compressionLevel: System.IO.Compression.CompressionLevel, leaveOpen: boolean);
constructor(stream: System.IO.Stream, compressionOptions: System.IO.Compression.ZLibCompressionOptions, leaveOpen?: boolean);
readonly CanRead: boolean;
readonly CanWrite: boolean;
readonly CanSeek: boolean;
readonly Length: long;
Position: long;
readonly BaseStream: System.IO.Stream;
Flush(): void;
Seek(offset: long, origin: System.IO.SeekOrigin): long;
SetLength(value: long): void;
ReadByte(): int;
BeginRead(buffer: ReadonlyArray<byte>, offset: int, count: int, asyncCallback: System.AsyncCallback, asyncState: any): System.IAsyncResult;
EndRead(asyncResult: System.IAsyncResult): int;
Read(buffer: ReadonlyArray<byte>, offset: int, count: int): int;
Read(buffer: System.Span<byte>): int;
BeginWrite(buffer: ReadonlyArray<byte>, offset: int, count: int, asyncCallback: System.AsyncCallback, asyncState: any): System.IAsyncResult;
EndWrite(asyncResult: System.IAsyncResult): void;
Write(buffer: ReadonlyArray<byte>, offset: int, count: int): void;
WriteByte(value: byte): void;
Write(buffer: System.ReadOnlySpan<byte>): void;
CopyTo(destination: System.IO.Stream, bufferSize: int): void;
DisposeAsync(): System.Threading.Tasks.ValueTask;
ReadAsync(buffer: ReadonlyArray<byte>, offset: int, count: int, cancellationToken: System.Threading.CancellationToken): Promise<int>;
ReadAsync(buffer: System.Memory<byte>, cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask<int>;
WriteAsync(buffer: ReadonlyArray<byte>, offset: int, count: int, cancellationToken: System.Threading.CancellationToken): System.Threading.Tasks.Task;
WriteAsync(buffer: System.ReadOnlyMemory<byte>, cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask;
FlushAsync(cancellationToken: System.Threading.CancellationToken): System.Threading.Tasks.Task;
CopyToAsync(destination: System.IO.Stream, bufferSize: int, cancellationToken: System.Threading.CancellationToken): System.Threading.Tasks.Task;
}
class ZipArchive implements System.IDisposable, System.IAsyncDisposable {
constructor(stream: System.IO.Stream);
constructor(stream: System.IO.Stream, mode: System.IO.Compression.ZipArchiveMode);
constructor(stream: System.IO.Stream, mode: System.IO.Compression.ZipArchiveMode, leaveOpen: boolean);
constructor(stream: System.IO.Stream, mode: System.IO.Compression.ZipArchiveMode, leaveOpen: boolean, entryNameEncoding: System.Text.Encoding);
Comment: string;
readonly Entries: System.Collections.ObjectModel.ReadOnlyCollection<System.IO.Compression.ZipArchiveEntry>;
readonly Mode: System.IO.Compression.ZipArchiveMode;
CreateEntry(entryName: string): System.IO.Compression.ZipArchiveEntry;
CreateEntry(entryName: string, compressionLevel: System.IO.Compression.CompressionLevel): System.IO.Compression.ZipArchiveEntry;
Dispose(): void;
GetEntry(entryName: string): System.IO.Compression.ZipArchiveEntry;
static CreateAsync(stream: System.IO.Stream, mode: System.IO.Compression.ZipArchiveMode, leaveOpen: boolean, entryNameEncoding: System.Text.Encoding, cancellationToken?: System.Threading.CancellationToken): Promise<System.IO.Compression.ZipArchive>;
DisposeAsync(): System.Threading.Tasks.ValueTask;
}
class ZipArchiveEntry {
readonly Archive: System.IO.Compression.ZipArchive;
readonly Crc32: uint;
readonly IsEncrypted: boolean;
readonly CompressedLength: long;
ExternalAttributes: int;
Comment: string;
FullName: string;
LastWriteTime: System.DateTimeOffset;
readonly Length: long;
readonly Name: string;
Delete(): void;
Open(): System.IO.Stream;
OpenAsync(cancellationToken?: System.Threading.CancellationToken): Promise<System.IO.Stream>;
}
enum ZipArchiveMode {
Read = 0,
Create = 1,
Update = 2
}
class ZLibCompressionOptions {
constructor();
CompressionLevel: int;
CompressionStrategy: System.IO.Compression.ZLibCompressionStrategy;
}
enum ZLibCompressionStrategy {
Default = 0,
Filtered = 1,
HuffmanOnly = 2,
RunLengthEncoding = 3,
Fixed = 4
}
class ZLibException extends System.IO.IOException implements System.Runtime.Serialization.ISerializable {
constructor(message: string, zlibErrorContext: string, zlibErrorCode: int, zlibErrorMessage: string);
constructor();
constructor(message: string, innerException: System.Exception);
}
class ZLibStream extends System.IO.Stream implements System.IDisposable, System.IAsyncDisposable {
constructor(stream: System.IO.Stream, mode: System.IO.Compression.CompressionMode);
constructor(stream: System.IO.Stream, mode: System.IO.Compression.CompressionMode, leaveOpen: boolean);
constructor(stream: System.IO.Stream, compressionLevel: System.IO.Compression.CompressionLevel);
constructor(stream: System.IO.Stream, compressionLevel: System.IO.Compression.CompressionLevel, leaveOpen: boolean);
constructor(stream: System.IO.Stream, compressionOptions: System.IO.Compression.ZLibCompressionOptions, leaveOpen?: boolean);
readonly CanRead: boolean;
readonly CanWrite: boolean;
readonly CanSeek: boolean;
readonly Length: long;
Position: long;
readonly BaseStream: System.IO.Stream;
Flush(): void;
FlushAsync(cancellationToken: System.Threading.CancellationToken): System.Threading.Tasks.Task;
Seek(offset: long, origin: System.IO.SeekOrigin): long;
SetLength(value: long): void;
ReadByte(): int;
BeginRead(buffer: ReadonlyArray<byte>, offset: int, count: int, asyncCallback: System.AsyncCallback, asyncState: any): System.IAsyncResult;
EndRead(asyncResult: System.IAsyncResult): int;
Read(buffer: ReadonlyArray<byte>, offset: int, count: int): int;
Read(buffer: System.Span<byte>): int;
ReadAsync(buffer: ReadonlyArray<byte>, offset: int, count: int, cancellationToken: System.Threading.CancellationToken): Promise<int>;
ReadAsync(buffer: System.Memory<byte>, cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask<int>;
BeginWrite(buffer: ReadonlyArray<byte>, offset: int, count: int, asyncCallback: System.AsyncCallback, asyncState: any): System.IAsyncResult;
EndWrite(asyncResult: System.IAsyncResult): void;
Write(buffer: ReadonlyArray<byte>, offset: int, count: int): void;
Write(buffer: System.ReadOnlySpan<byte>): void;
WriteAsync(buffer: ReadonlyArray<byte>, offset: int, count: int, cancellationToken: System.Threading.CancellationToken): System.Threading.Tasks.Task;
WriteAsync(buffer: System.ReadOnlyMemory<byte>, cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask;
WriteByte(value: byte): void;
CopyTo(destination: System.IO.Stream, bufferSize: int): void;
CopyToAsync(destination: System.IO.Stream, bufferSize: int, cancellationToken: System.Threading.CancellationToken): System.Threading.Tasks.Task;
DisposeAsync(): System.Threading.Tasks.ValueTask;
}
}