UNPKG

@tsonic/dotnet-types

Version:

TypeScript declarations and metadata for .NET 10.0 assemblies

503 lines (452 loc) 33.1 kB
// Auto-generated by generatedts on 2025-11-02T09:57:53Z - 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.Diagnostics { class Activity implements System.IDisposable { constructor(operationName: string); static ForceDefaultIdFormat: boolean; readonly Status: System.Diagnostics.ActivityStatusCode; readonly StatusDescription: string; HasRemoteParent: boolean; static Current: System.Diagnostics.Activity; Kind: System.Diagnostics.ActivityKind; readonly OperationName: string; DisplayName: string; Source: System.Diagnostics.ActivitySource; Parent: System.Diagnostics.Activity; Duration: System.TimeSpan; StartTimeUtc: System.DateTime; readonly Id: string; readonly ParentId: string; readonly RootId: string; readonly Tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, string>>; readonly TagObjects: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>; readonly Events: ReadonlyArray<System.Diagnostics.ActivityEvent>; readonly Links: ReadonlyArray<System.Diagnostics.ActivityLink>; readonly Baggage: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, string>>; readonly Context: System.Diagnostics.ActivityContext; TraceStateString: string; readonly SpanId: System.Diagnostics.ActivitySpanId; readonly TraceId: System.Diagnostics.ActivityTraceId; readonly Recorded: boolean; IsAllDataRequested: boolean; ActivityTraceFlags: System.Diagnostics.ActivityTraceFlags; readonly ParentSpanId: System.Diagnostics.ActivitySpanId; static TraceIdGenerator: System.Func<System.Diagnostics.ActivityTraceId>; static DefaultIdFormat: System.Diagnostics.ActivityIdFormat; IsStopped: boolean; IdFormat: System.Diagnostics.ActivityIdFormat; SetStatus(code: System.Diagnostics.ActivityStatusCode, description?: string): System.Diagnostics.Activity; EnumerateTagObjects(): System.Diagnostics.Enumerator<System.Collections.Generic.KeyValuePair<string, any>>; EnumerateEvents(): System.Diagnostics.Enumerator<System.Diagnostics.ActivityEvent>; EnumerateLinks(): System.Diagnostics.Enumerator<System.Diagnostics.ActivityLink>; GetBaggageItem(key: string): string; GetTagItem(key: string): any; AddTag(key: string, value: string): System.Diagnostics.Activity; AddTag(key: string, value: any): System.Diagnostics.Activity; SetTag(key: string, value: any): System.Diagnostics.Activity; AddEvent(e: System.Diagnostics.ActivityEvent): System.Diagnostics.Activity; AddException(exception: System.Exception, tags?: System.Diagnostics.TagList, timestamp?: System.DateTimeOffset): System.Diagnostics.Activity; AddLink(link: System.Diagnostics.ActivityLink): System.Diagnostics.Activity; AddBaggage(key: string, value: string): System.Diagnostics.Activity; SetBaggage(key: string, value: string): System.Diagnostics.Activity; SetParentId(parentId: string): System.Diagnostics.Activity; SetParentId(traceId: System.Diagnostics.ActivityTraceId, spanId: System.Diagnostics.ActivitySpanId, activityTraceFlags?: System.Diagnostics.ActivityTraceFlags): System.Diagnostics.Activity; SetStartTime(startTimeUtc: System.DateTime): System.Diagnostics.Activity; SetEndTime(endTimeUtc: System.DateTime): System.Diagnostics.Activity; Start(): System.Diagnostics.Activity; Stop(): void; SetIdFormat(format: System.Diagnostics.ActivityIdFormat): System.Diagnostics.Activity; Dispose(): void; SetCustomProperty(propertyName: string, propertyValue: any): void; GetCustomProperty(propertyName: string): any; } class ActivityChangedEventArgs { Previous: System.Diagnostics.Activity; Current: System.Diagnostics.Activity; } class ActivityContext implements System.IEquatable<System.Diagnostics.ActivityContext> { constructor(traceId: System.Diagnostics.ActivityTraceId, spanId: System.Diagnostics.ActivitySpanId, traceFlags: System.Diagnostics.ActivityTraceFlags, traceState?: string, isRemote?: boolean); readonly TraceId: System.Diagnostics.ActivityTraceId; readonly SpanId: System.Diagnostics.ActivitySpanId; readonly TraceFlags: System.Diagnostics.ActivityTraceFlags; readonly TraceState: string; readonly IsRemote: boolean; static TryParse(traceParent: string, traceState: string, isRemote: boolean, context: System.Diagnostics.ActivityContext): boolean; static TryParse(traceParent: string, traceState: string, context: System.Diagnostics.ActivityContext): boolean; static Parse(traceParent: string, traceState: string): System.Diagnostics.ActivityContext; } class ActivityCreationOptions<T> { readonly Source: System.Diagnostics.ActivitySource; readonly Name: string; readonly Kind: System.Diagnostics.ActivityKind; readonly Parent: T; readonly Tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>; readonly Links: ReadonlyArray<System.Diagnostics.ActivityLink>; readonly SamplingTags: System.Diagnostics.ActivityTagsCollection; readonly TraceId: System.Diagnostics.ActivityTraceId; TraceState: string; } class ActivityEvent { constructor(name: string); constructor(name: string, timestamp?: System.DateTimeOffset, tags?: System.Diagnostics.ActivityTagsCollection); readonly Name: string; readonly Timestamp: System.DateTimeOffset; readonly Tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>; EnumerateTagObjects(): System.Diagnostics.Enumerator<System.Collections.Generic.KeyValuePair<string, any>>; } enum ActivityIdFormat { Unknown = 0, Hierarchical = 1, W3C = 2 } enum ActivityKind { Internal = 0, Server = 1, Client = 2, Producer = 3, Consumer = 4 } class ActivityLink implements System.IEquatable<System.Diagnostics.ActivityLink> { constructor(context: System.Diagnostics.ActivityContext, tags?: System.Diagnostics.ActivityTagsCollection); readonly Context: System.Diagnostics.ActivityContext; readonly Tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>; EnumerateTagObjects(): System.Diagnostics.Enumerator<System.Collections.Generic.KeyValuePair<string, any>>; } class ActivityListener implements System.IDisposable { constructor(); ActivityStarted: System.Action<System.Diagnostics.Activity>; ActivityStopped: System.Action<System.Diagnostics.Activity>; ExceptionRecorder: System.Diagnostics.ExceptionRecorder; ShouldListenTo: System.Func<System.Diagnostics.ActivitySource, boolean>; SampleUsingParentId: System.Diagnostics.SampleActivity<string>; Sample: System.Diagnostics.SampleActivity<System.Diagnostics.ActivityContext>; Dispose(): void; } enum ActivitySamplingResult { None = 0, PropagationData = 1, AllData = 2, AllDataAndRecorded = 3 } class ActivitySource implements System.IDisposable { constructor(name: string); constructor(name: string, version?: string); constructor(name: string, version?: string, tags?: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>); constructor(options: System.Diagnostics.ActivitySourceOptions); readonly Name: string; readonly Version: string; readonly Tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>; readonly TelemetrySchemaUrl: string; HasListeners(): boolean; CreateActivity(name: string, kind: System.Diagnostics.ActivityKind): System.Diagnostics.Activity; CreateActivity(name: string, kind: System.Diagnostics.ActivityKind, parentContext: System.Diagnostics.ActivityContext, tags?: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>, links?: ReadonlyArray<System.Diagnostics.ActivityLink>, idFormat?: System.Diagnostics.ActivityIdFormat): System.Diagnostics.Activity; CreateActivity(name: string, kind: System.Diagnostics.ActivityKind, parentId: string, tags?: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>, links?: ReadonlyArray<System.Diagnostics.ActivityLink>, idFormat?: System.Diagnostics.ActivityIdFormat): System.Diagnostics.Activity; StartActivity(name?: string, kind?: System.Diagnostics.ActivityKind): System.Diagnostics.Activity; StartActivity(name: string, kind: System.Diagnostics.ActivityKind, parentContext: System.Diagnostics.ActivityContext, tags?: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>, links?: ReadonlyArray<System.Diagnostics.ActivityLink>, startTime?: System.DateTimeOffset): System.Diagnostics.Activity; StartActivity(name: string, kind: System.Diagnostics.ActivityKind, parentId: string, tags?: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>, links?: ReadonlyArray<System.Diagnostics.ActivityLink>, startTime?: System.DateTimeOffset): System.Diagnostics.Activity; StartActivity(kind: System.Diagnostics.ActivityKind, parentContext?: System.Diagnostics.ActivityContext, tags?: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>, links?: ReadonlyArray<System.Diagnostics.ActivityLink>, startTime?: System.DateTimeOffset, name?: string): System.Diagnostics.Activity; Dispose(): void; static AddActivityListener(listener: System.Diagnostics.ActivityListener): void; } class ActivitySourceOptions { constructor(name: string); Name: string; Version: string; Tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>; TelemetrySchemaUrl: string; } class ActivitySpanId implements System.IEquatable<System.Diagnostics.ActivitySpanId> { static CreateRandom(): System.Diagnostics.ActivitySpanId; static CreateFromBytes(idData: System.ReadOnlySpan<byte>): System.Diagnostics.ActivitySpanId; static CreateFromUtf8String(idData: System.ReadOnlySpan<byte>): System.Diagnostics.ActivitySpanId; static CreateFromString(idData: System.ReadOnlySpan<number>): System.Diagnostics.ActivitySpanId; ToHexString(): string; CopyTo(destination: System.Span<byte>): void; } enum ActivityStatusCode { Unset = 0, Ok = 1, Error = 2 } class ActivityTagsCollection implements System.Collections.Generic.IDictionary<string, any>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, any>>, ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>, System.Collections.IEnumerable { constructor(); constructor(list: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>); Item: any; readonly Keys: System.Collections.Generic.ICollection<string>; readonly Values: System.Collections.Generic.ICollection<any>; readonly IsReadOnly: boolean; readonly Count: int; Add(key: string, value: any): void; Add(item: System.Collections.Generic.KeyValuePair<string, any>): void; Clear(): void; Contains(item: System.Collections.Generic.KeyValuePair<string, any>): boolean; ContainsKey(key: string): boolean; CopyTo(array: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>, arrayIndex: int): void; GetEnumerator(): System.Diagnostics.ActivityTagsCollection.Enumerator; Remove(key: string): boolean; Remove(item: System.Collections.Generic.KeyValuePair<string, any>): boolean; TryGetValue(key: string, value: any): boolean; } enum ActivityTraceFlags { None = 0, Recorded = 1 } class ActivityTraceId implements System.IEquatable<System.Diagnostics.ActivityTraceId> { static CreateRandom(): System.Diagnostics.ActivityTraceId; static CreateFromBytes(idData: System.ReadOnlySpan<byte>): System.Diagnostics.ActivityTraceId; static CreateFromUtf8String(idData: System.ReadOnlySpan<byte>): System.Diagnostics.ActivityTraceId; static CreateFromString(idData: System.ReadOnlySpan<number>): System.Diagnostics.ActivityTraceId; ToHexString(): string; CopyTo(destination: System.Span<byte>): void; } class DiagnosticListener extends System.Diagnostics.DiagnosticSource implements System.IObservable<System.Collections.Generic.KeyValuePair<string, any>>, System.IDisposable { constructor(name: string); static readonly AllListeners: System.IObservable<System.Diagnostics.DiagnosticListener>; readonly Name: string; OnActivityImport(activity: System.Diagnostics.Activity, payload: any): void; OnActivityExport(activity: System.Diagnostics.Activity, payload: any): void; Subscribe(observer: System.IObserver<System.Collections.Generic.KeyValuePair<string, any>>, isEnabled: System.Func<string, any, any, boolean>, onActivityImport?: System.Action<System.Diagnostics.Activity, any>, onActivityExport?: System.Action<System.Diagnostics.Activity, any>): System.IDisposable; Subscribe(observer: System.IObserver<System.Collections.Generic.KeyValuePair<string, any>>, isEnabled: System.Predicate<string>): System.IDisposable; Subscribe(observer: System.IObserver<System.Collections.Generic.KeyValuePair<string, any>>, isEnabled: System.Func<string, any, any, boolean>): System.IDisposable; Subscribe(observer: System.IObserver<System.Collections.Generic.KeyValuePair<string, any>>): System.IDisposable; Dispose(): void; IsEnabled(): boolean; IsEnabled(name: string): boolean; IsEnabled(name: string, arg1: any, arg2?: any): boolean; Write(name: string, value: any): void; } class DiagnosticSource { Write(name: string, value: any): void; Write<T>(name: string, value: T): void; IsEnabled(name: string): boolean; IsEnabled(name: string, arg1: any, arg2?: any): boolean; StartActivity(activity: System.Diagnostics.Activity, args: any): System.Diagnostics.Activity; StartActivity<T>(activity: System.Diagnostics.Activity, args: T): System.Diagnostics.Activity; StopActivity(activity: System.Diagnostics.Activity, args: any): void; StopActivity<T>(activity: System.Diagnostics.Activity, args: T): void; OnActivityImport(activity: System.Diagnostics.Activity, payload: any): void; OnActivityExport(activity: System.Diagnostics.Activity, payload: any): void; } class DistributedContextPropagator { readonly Fields: ReadonlyArray<string>; static Current: System.Diagnostics.DistributedContextPropagator; Inject(activity: System.Diagnostics.Activity, carrier: any, setter: System.Diagnostics.DistributedContextPropagator.PropagatorSetterCallback): void; ExtractTraceIdAndState(carrier: any, getter: System.Diagnostics.DistributedContextPropagator.PropagatorGetterCallback, traceId: string, traceState: string): void; ExtractBaggage(carrier: any, getter: System.Diagnostics.DistributedContextPropagator.PropagatorGetterCallback): ReadonlyArray<System.Collections.Generic.KeyValuePair<string, string>>; static CreateDefaultPropagator(): System.Diagnostics.DistributedContextPropagator; static CreatePassThroughPropagator(): System.Diagnostics.DistributedContextPropagator; static CreateW3CPropagator(): System.Diagnostics.DistributedContextPropagator; static CreatePreW3CPropagator(): System.Diagnostics.DistributedContextPropagator; static CreateNoOutputPropagator(): System.Diagnostics.DistributedContextPropagator; } class Enumerator implements System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, any>>, System.IDisposable, System.Collections.IEnumerator { readonly Current: System.Collections.Generic.KeyValuePair<string, any>; Dispose(): void; MoveNext(): boolean; } class Enumerator implements System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, any>>, System.IDisposable, System.Collections.IEnumerator { readonly Current: System.Collections.Generic.KeyValuePair<string, any>; Dispose(): void; MoveNext(): boolean; Reset(): void; } class Enumerator<T> { readonly Current: T; GetEnumerator(): System.Diagnostics.Enumerator<>; MoveNext(): boolean; } class ExceptionRecorder extends System.MulticastDelegate implements System.ICloneable, System.Runtime.Serialization.ISerializable { constructor(object: any, method: number); Invoke(activity: System.Diagnostics.Activity, exception: System.Exception, tags: System.Diagnostics.TagList): void; BeginInvoke(activity: System.Diagnostics.Activity, exception: System.Exception, tags: System.Diagnostics.TagList, callback: System.AsyncCallback, object: any): System.IAsyncResult; EndInvoke(tags: System.Diagnostics.TagList, result: System.IAsyncResult): void; } class PropagatorGetterCallback extends System.MulticastDelegate implements System.ICloneable, System.Runtime.Serialization.ISerializable { constructor(object: any, method: number); Invoke(carrier: any, fieldName: string, fieldValue: string, fieldValues: ReadonlyArray<string>): void; BeginInvoke(carrier: any, fieldName: string, fieldValue: string, fieldValues: ReadonlyArray<string>, callback: System.AsyncCallback, object: any): System.IAsyncResult; EndInvoke(fieldValue: string, fieldValues: ReadonlyArray<string>, result: System.IAsyncResult): void; } class PropagatorSetterCallback extends System.MulticastDelegate implements System.ICloneable, System.Runtime.Serialization.ISerializable { constructor(object: any, method: number); Invoke(carrier: any, fieldName: string, fieldValue: string): void; BeginInvoke(carrier: any, fieldName: string, fieldValue: string, callback: System.AsyncCallback, object: any): System.IAsyncResult; EndInvoke(result: System.IAsyncResult): void; } class SampleActivity<T> extends System.MulticastDelegate implements System.ICloneable, System.Runtime.Serialization.ISerializable { constructor(object: any, method: number); Invoke(options: System.Diagnostics.ActivityCreationOptions<T>): System.Diagnostics.ActivitySamplingResult; BeginInvoke(options: System.Diagnostics.ActivityCreationOptions<T>, callback: System.AsyncCallback, object: any): System.IAsyncResult; EndInvoke(options: System.Diagnostics.ActivityCreationOptions<T>, result: System.IAsyncResult): System.Diagnostics.ActivitySamplingResult; } class TagList implements System.Collections.Generic.IList<System.Collections.Generic.KeyValuePair<string, any>>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, any>>, ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>, System.Collections.IEnumerable, ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>, ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>> { constructor(tagList: System.ReadOnlySpan<System.Collections.Generic.KeyValuePair<string, any>>); readonly Count: int; readonly IsReadOnly: boolean; Item: System.Collections.Generic.KeyValuePair<string, any>; Add(key: string, value: any): void; Add(tag: System.Collections.Generic.KeyValuePair<string, any>): void; CopyTo(tags: System.Span<System.Collections.Generic.KeyValuePair<string, any>>): void; CopyTo(array: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>, arrayIndex: int): void; Insert(index: int, item: System.Collections.Generic.KeyValuePair<string, any>): void; RemoveAt(index: int): void; Clear(): void; Contains(item: System.Collections.Generic.KeyValuePair<string, any>): boolean; Remove(item: System.Collections.Generic.KeyValuePair<string, any>): boolean; GetEnumerator(): System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, any>>; IndexOf(item: System.Collections.Generic.KeyValuePair<string, any>): int; } } declare namespace System.Diagnostics.Metrics { class Counter<T> extends System.Diagnostics.Metrics.Instrument<T> { Add(delta: T): void; Add(delta: T, tag: System.Collections.Generic.KeyValuePair<string, any>): void; Add(delta: T, tag1: System.Collections.Generic.KeyValuePair<string, any>, tag2: System.Collections.Generic.KeyValuePair<string, any>): void; Add(delta: T, tag1: System.Collections.Generic.KeyValuePair<string, any>, tag2: System.Collections.Generic.KeyValuePair<string, any>, tag3: System.Collections.Generic.KeyValuePair<string, any>): void; Add(delta: T, tags: System.ReadOnlySpan<System.Collections.Generic.KeyValuePair<string, any>>): void; Add(delta: T, ...tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): void; Add(delta: T, tagList: System.Diagnostics.TagList): void; } class Gauge<T> extends System.Diagnostics.Metrics.Instrument<T> { Record(value: T): void; Record(value: T, tag: System.Collections.Generic.KeyValuePair<string, any>): void; Record(value: T, tag1: System.Collections.Generic.KeyValuePair<string, any>, tag2: System.Collections.Generic.KeyValuePair<string, any>): void; Record(value: T, tag1: System.Collections.Generic.KeyValuePair<string, any>, tag2: System.Collections.Generic.KeyValuePair<string, any>, tag3: System.Collections.Generic.KeyValuePair<string, any>): void; Record(value: T, tags: System.ReadOnlySpan<System.Collections.Generic.KeyValuePair<string, any>>): void; Record(value: T, ...tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): void; Record(value: T, tagList: System.Diagnostics.TagList): void; } class Histogram<T> extends System.Diagnostics.Metrics.Instrument<T> { Record(value: T): void; Record(value: T, tag: System.Collections.Generic.KeyValuePair<string, any>): void; Record(value: T, tag1: System.Collections.Generic.KeyValuePair<string, any>, tag2: System.Collections.Generic.KeyValuePair<string, any>): void; Record(value: T, tag1: System.Collections.Generic.KeyValuePair<string, any>, tag2: System.Collections.Generic.KeyValuePair<string, any>, tag3: System.Collections.Generic.KeyValuePair<string, any>): void; Record(value: T, tags: System.ReadOnlySpan<System.Collections.Generic.KeyValuePair<string, any>>): void; Record(value: T, ...tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): void; Record(value: T, tagList: System.Diagnostics.TagList): void; } interface IMeterFactory { Create(options: System.Diagnostics.Metrics.MeterOptions): System.Diagnostics.Metrics.Meter; } class Instrument { readonly Meter: System.Diagnostics.Metrics.Meter; readonly Name: string; readonly Description: string; readonly Unit: string; readonly Tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>; readonly Enabled: boolean; readonly IsObservable: boolean; } class Instrument<T> extends System.Diagnostics.Metrics.Instrument { readonly Advice: System.Diagnostics.Metrics.InstrumentAdvice<T>; } class InstrumentAdvice<T> { constructor(); HistogramBucketBoundaries: ReadonlyArray<T>; } class Measurement<T> { constructor(value: T); constructor(value: T, tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>); constructor(value: T, ...tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>); constructor(value: T, tags: System.ReadOnlySpan<System.Collections.Generic.KeyValuePair<string, any>>); constructor(value: T, tags: System.Diagnostics.TagList); readonly Tags: System.ReadOnlySpan<System.Collections.Generic.KeyValuePair<string, any>>; readonly Value: T; } class MeasurementCallback<T> extends System.MulticastDelegate implements System.ICloneable, System.Runtime.Serialization.ISerializable { constructor(object: any, method: number); Invoke(instrument: System.Diagnostics.Metrics.Instrument, measurement: T, tags: System.ReadOnlySpan<System.Collections.Generic.KeyValuePair<string, any>>, state: any): void; BeginInvoke(instrument: System.Diagnostics.Metrics.Instrument, measurement: T, tags: System.ReadOnlySpan<System.Collections.Generic.KeyValuePair<string, any>>, state: any, callback: System.AsyncCallback, object: any): System.IAsyncResult; EndInvoke(result: System.IAsyncResult): void; } class Meter implements System.IDisposable { constructor(options: System.Diagnostics.Metrics.MeterOptions); constructor(name: string); constructor(name: string, version: string); constructor(name: string, version: string, tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>, scope?: any); Name: string; Version: string; Tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>; Scope: any; TelemetrySchemaUrl: string; CreateCounter<T>(name: string, unit?: string, description?: string): System.Diagnostics.Metrics.Counter<T>; CreateCounter<T>(name: string, unit: string, description: string, tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): System.Diagnostics.Metrics.Counter<T>; CreateGauge<T>(name: string): System.Diagnostics.Metrics.Gauge<T>; CreateGauge<T>(name: string, unit?: string, description?: string, tags?: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): System.Diagnostics.Metrics.Gauge<T>; CreateHistogram<T>(name: string): System.Diagnostics.Metrics.Histogram<T>; CreateHistogram<T>(name: string, unit: string, description: string): System.Diagnostics.Metrics.Histogram<T>; CreateHistogram<T>(name: string, unit: string, description: string, tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): System.Diagnostics.Metrics.Histogram<T>; CreateHistogram<T>(name: string, unit?: string, description?: string, tags?: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>, advice?: System.Diagnostics.Metrics.InstrumentAdvice<T>): System.Diagnostics.Metrics.Histogram<T>; CreateUpDownCounter<T>(name: string, unit?: string, description?: string): System.Diagnostics.Metrics.UpDownCounter<T>; CreateUpDownCounter<T>(name: string, unit: string, description: string, tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): System.Diagnostics.Metrics.UpDownCounter<T>; CreateObservableUpDownCounter<T>(name: string, observeValue: System.Func<T>, unit?: string, description?: string): System.Diagnostics.Metrics.ObservableUpDownCounter<T>; CreateObservableUpDownCounter<T>(name: string, observeValue: System.Func<T>, unit: string, description: string, tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): System.Diagnostics.Metrics.ObservableUpDownCounter<T>; CreateObservableUpDownCounter<T>(name: string, observeValue: System.Func<System.Diagnostics.Metrics.Measurement<T>>, unit?: string, description?: string): System.Diagnostics.Metrics.ObservableUpDownCounter<T>; CreateObservableUpDownCounter<T>(name: string, observeValue: System.Func<System.Diagnostics.Metrics.Measurement<T>>, unit: string, description: string, tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): System.Diagnostics.Metrics.ObservableUpDownCounter<T>; CreateObservableUpDownCounter<T>(name: string, observeValues: System.Func<ReadonlyArray<System.Diagnostics.Metrics.Measurement<T>>>, unit?: string, description?: string): System.Diagnostics.Metrics.ObservableUpDownCounter<T>; CreateObservableUpDownCounter<T>(name: string, observeValues: System.Func<ReadonlyArray<System.Diagnostics.Metrics.Measurement<T>>>, unit: string, description: string, tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): System.Diagnostics.Metrics.ObservableUpDownCounter<T>; CreateObservableCounter<T>(name: string, observeValue: System.Func<T>, unit?: string, description?: string): System.Diagnostics.Metrics.ObservableCounter<T>; CreateObservableCounter<T>(name: string, observeValue: System.Func<T>, unit: string, description: string, tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): System.Diagnostics.Metrics.ObservableCounter<T>; CreateObservableCounter<T>(name: string, observeValue: System.Func<System.Diagnostics.Metrics.Measurement<T>>, unit?: string, description?: string): System.Diagnostics.Metrics.ObservableCounter<T>; CreateObservableCounter<T>(name: string, observeValue: System.Func<System.Diagnostics.Metrics.Measurement<T>>, unit: string, description: string, tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): System.Diagnostics.Metrics.ObservableCounter<T>; CreateObservableCounter<T>(name: string, observeValues: System.Func<ReadonlyArray<System.Diagnostics.Metrics.Measurement<T>>>, unit?: string, description?: string): System.Diagnostics.Metrics.ObservableCounter<T>; CreateObservableCounter<T>(name: string, observeValues: System.Func<ReadonlyArray<System.Diagnostics.Metrics.Measurement<T>>>, unit: string, description: string, tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): System.Diagnostics.Metrics.ObservableCounter<T>; CreateObservableGauge<T>(name: string, observeValue: System.Func<T>, unit?: string, description?: string): System.Diagnostics.Metrics.ObservableGauge<T>; CreateObservableGauge<T>(name: string, observeValue: System.Func<T>, unit: string, description: string, tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): System.Diagnostics.Metrics.ObservableGauge<T>; CreateObservableGauge<T>(name: string, observeValue: System.Func<System.Diagnostics.Metrics.Measurement<T>>, unit?: string, description?: string): System.Diagnostics.Metrics.ObservableGauge<T>; CreateObservableGauge<T>(name: string, observeValue: System.Func<System.Diagnostics.Metrics.Measurement<T>>, unit: string, description: string, tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): System.Diagnostics.Metrics.ObservableGauge<T>; CreateObservableGauge<T>(name: string, observeValues: System.Func<ReadonlyArray<System.Diagnostics.Metrics.Measurement<T>>>, unit?: string, description?: string): System.Diagnostics.Metrics.ObservableGauge<T>; CreateObservableGauge<T>(name: string, observeValues: System.Func<ReadonlyArray<System.Diagnostics.Metrics.Measurement<T>>>, unit: string, description: string, tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): System.Diagnostics.Metrics.ObservableGauge<T>; Dispose(): void; } class MeterFactoryExtensions { static Create(meterFactory: System.Diagnostics.Metrics.IMeterFactory, name: string, version?: string, tags?: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): System.Diagnostics.Metrics.Meter; } class MeterListener implements System.IDisposable { constructor(); InstrumentPublished: System.Action<System.Diagnostics.Metrics.Instrument, System.Diagnostics.Metrics.MeterListener>; MeasurementsCompleted: System.Action<System.Diagnostics.Metrics.Instrument, any>; EnableMeasurementEvents(instrument: System.Diagnostics.Metrics.Instrument, state?: any): void; DisableMeasurementEvents(instrument: System.Diagnostics.Metrics.Instrument): any; SetMeasurementEventCallback<T>(measurementCallback: System.Diagnostics.Metrics.MeasurementCallback<T>): void; Start(): void; RecordObservableInstruments(): void; Dispose(): void; } class MeterOptions { constructor(name: string); Name: string; Version: string; Tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>; Scope: any; TelemetrySchemaUrl: string; } class ObservableCounter<T> extends System.Diagnostics.Metrics.ObservableInstrument<T> { } class ObservableGauge<T> extends System.Diagnostics.Metrics.ObservableInstrument<T> { } class ObservableInstrument<T> extends System.Diagnostics.Metrics.Instrument { readonly IsObservable: boolean; } class ObservableUpDownCounter<T> extends System.Diagnostics.Metrics.ObservableInstrument<T> { } class UpDownCounter<T> extends System.Diagnostics.Metrics.Instrument<T> { Add(delta: T): void; Add(delta: T, tag: System.Collections.Generic.KeyValuePair<string, any>): void; Add(delta: T, tag1: System.Collections.Generic.KeyValuePair<string, any>, tag2: System.Collections.Generic.KeyValuePair<string, any>): void; Add(delta: T, tag1: System.Collections.Generic.KeyValuePair<string, any>, tag2: System.Collections.Generic.KeyValuePair<string, any>, tag3: System.Collections.Generic.KeyValuePair<string, any>): void; Add(delta: T, tags: System.ReadOnlySpan<System.Collections.Generic.KeyValuePair<string, any>>): void; Add(delta: T, ...tags: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>): void; Add(delta: T, tagList: System.Diagnostics.TagList): void; } }