UNPKG

@tsonic/dotnet-pure

Version:

TypeScript type definitions for .NET 10 BCL (Base Class Library) - CLR naming

1,513 lines (1,094 loc) 109 kB
// Generated by tsbindgen - Architecture // Namespace: System.ComponentModel // Assembly: System.ComponentModel, System.ComponentModel.EventBasedAsync, System.ComponentModel.Primitives, System.ComponentModel.TypeConverter, System.ObjectModel, System.Private.CoreLib // Branded primitive types are sourced from @tsonic/types import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types'; // Import support types from @tsonic/types import type { ptr, ref } from "@tsonic/types"; // Import types from other namespaces import * as System_Collections_Generic_Internal from "../../System.Collections.Generic/internal/index.js"; import type { ICollection_1, IEnumerable_1, IEnumerator_1, IList_1, IReadOnlyCollection_1, IReadOnlyList_1 } from "../../System.Collections.Generic/internal/index.js"; import * as System_Collections_ObjectModel_Internal from "../../System.Collections.ObjectModel/internal/index.js"; import type { Collection_1 } from "../../System.Collections.ObjectModel/internal/index.js"; import * as System_Collections_Internal from "../../System.Collections/internal/index.js"; import type { Hashtable, ICollection, IComparer, IDictionary, IDictionaryEnumerator, IEnumerable, IEnumerator, IList, ReadOnlyCollectionBase } from "../../System.Collections/internal/index.js"; import type { IDesigner } from "../../System.ComponentModel.Design/internal/index.js"; import type { CultureInfo } from "../../System.Globalization/internal/index.js"; import type { UnmanagedMemoryStream } from "../../System.IO/internal/index.js"; import type { Assembly, MethodBase, MethodInfo, Module } from "../../System.Reflection/internal/index.js"; import * as System_Resources_Internal from "../../System.Resources/internal/index.js"; import type { ResourceManager, ResourceSet } from "../../System.Resources/internal/index.js"; import * as System_Runtime_InteropServices_Internal from "../../System.Runtime.InteropServices/internal/index.js"; import type { ExternalException } from "../../System.Runtime.InteropServices/internal/index.js"; import * as System_Runtime_Serialization_Internal from "../../System.Runtime.Serialization/internal/index.js"; import type { ISerializable, SerializationInfo, StreamingContext } from "../../System.Runtime.Serialization/internal/index.js"; import type { SendOrPostCallback, SynchronizationContext } from "../../System.Threading/internal/index.js"; import * as System_Internal from "../../System/internal/index.js"; import type { ArgumentException, Array as ClrArray, AsyncCallback, Attribute, Boolean as ClrBoolean, Byte, Char, Delegate, Double, Enum, EventArgs, EventHandler, EventHandler_1, Exception, IAsyncResult, ICloneable, IComparable, IConvertible, IDisposable, IFormatProvider, IFormattable, Int16, Int32, Int64, IntPtr, IServiceProvider, ISpanFormattable, MarshalByRefObject, MulticastDelegate, Nullable_1, Object as ClrObject, SByte, Single, String as ClrString, SystemException, Type, TypeCode, UInt16, UInt32, UInt64, Void } from "../../System/internal/index.js"; // CLROf<T> - Maps ergonomic primitives to their CLR types for generic constraints // This utility is used ONLY in generic type arguments to satisfy CLR interface constraints // Value positions (parameters, return types) use lowercase primitives for ergonomics export type CLROf<T> = T extends sbyte ? System_Internal.SByte : T extends short ? System_Internal.Int16 : T extends int ? System_Internal.Int32 : T extends long ? System_Internal.Int64 : T extends int128 ? System_Internal.Int128 : T extends nint ? System_Internal.IntPtr : T extends byte ? System_Internal.Byte : T extends ushort ? System_Internal.UInt16 : T extends uint ? System_Internal.UInt32 : T extends ulong ? System_Internal.UInt64 : T extends uint128 ? System_Internal.UInt128 : T extends nuint ? System_Internal.UIntPtr : T extends half ? System_Internal.Half : T extends float ? System_Internal.Single : T extends double ? System_Internal.Double : T extends decimal ? System_Internal.Decimal : T extends char ? System_Internal.Char : T extends boolean ? System_Internal.Boolean : T extends string ? System_Internal.String : T; // Identity fallback for non-primitive types export enum BindableSupport { No = 0, Yes = 1, Default = 2 } export enum BindingDirection { OneWay = 0, TwoWay = 1 } export enum CollectionChangeAction { Add = 1, Remove = 2, Refresh = 3 } export enum DataObjectMethodType { Fill = 0, Select = 1, Update = 2, Insert = 3, Delete = 4 } export enum DesignerSerializationVisibility { Hidden = 0, Visible = 1, Content = 2 } export enum EditorBrowsableState { Always = 0, Never = 1, Advanced = 2 } export enum InheritanceLevel { Inherited = 1, InheritedReadOnly = 2, NotInherited = 3 } export enum LicenseUsageMode { Runtime = 0, Designtime = 1 } export enum ListChangedType { Reset = 0, ItemAdded = 1, ItemDeleted = 2, ItemMoved = 3, ItemChanged = 4, PropertyDescriptorAdded = 5, PropertyDescriptorDeleted = 6, PropertyDescriptorChanged = 7 } export enum ListSortDirection { Ascending = 0, Descending = 1 } export enum MaskedTextResultHint { Unknown = 0, CharacterEscaped = 1, NoEffect = 2, SideEffect = 3, Success = 4, AsciiCharacterExpected = -1, AlphanumericCharacterExpected = -2, DigitExpected = -3, LetterExpected = -4, SignedDigitExpected = -5, InvalidInput = -51, PromptCharNotAllowed = -52, UnavailableEditPosition = -53, NonEditPosition = -54, PositionOutOfRange = -55 } export enum PropertyTabScope { Static = 0, Global = 1, Document = 2, Component = 3 } export enum RefreshProperties { None = 0, All = 1, Repaint = 2 } export enum ToolboxItemFilterType { Allow = 0, Custom = 1, Prevent = 2, Require = 3 } export type AddingNewEventHandler = (sender: unknown, e: AddingNewEventArgs) => void; export type AsyncCompletedEventHandler = (sender: unknown, e: AsyncCompletedEventArgs) => void; export type CancelEventHandler = (sender: unknown, e: CancelEventArgs) => void; export type CollectionChangeEventHandler = (sender: unknown, e: CollectionChangeEventArgs) => void; export type DoWorkEventHandler = (sender: unknown, e: DoWorkEventArgs) => void; export type HandledEventHandler = (sender: unknown, e: HandledEventArgs) => void; export type ListChangedEventHandler = (sender: unknown, e: ListChangedEventArgs) => void; export type ProgressChangedEventHandler = (sender: unknown, e: ProgressChangedEventArgs) => void; export type PropertyChangedEventHandler = (sender: unknown, e: PropertyChangedEventArgs) => void; export type PropertyChangingEventHandler = (sender: unknown, e: PropertyChangingEventArgs) => void; export type RefreshEventHandler = (e: RefreshEventArgs) => void; export type RunWorkerCompletedEventHandler = (sender: unknown, e: RunWorkerCompletedEventArgs) => void; export interface IBindingList$instance extends IList, ICollection, IEnumerable { readonly AllowNew: boolean; readonly AllowEdit: boolean; readonly AllowRemove: boolean; readonly SupportsChangeNotification: boolean; readonly SupportsSearching: boolean; readonly SupportsSorting: boolean; readonly IsSorted: boolean; readonly SortProperty: PropertyDescriptor; readonly SortDirection: ListSortDirection; Item: unknown; readonly IsReadOnly: boolean; readonly IsFixedSize: boolean; readonly Count: int; readonly SyncRoot: unknown; readonly IsSynchronized: boolean; Add(value: unknown): int; AddIndex(property: PropertyDescriptor): void; AddNew(): unknown; ApplySort(property: PropertyDescriptor, direction: ListSortDirection): void; Contains(value: unknown): boolean; CopyTo(array: ClrArray, index: int): void; Find(property: PropertyDescriptor, key: unknown): int; GetEnumerator(): IEnumerator; Insert(index: int, value: unknown): void; Remove(value: unknown): void; RemoveAt(index: int): void; RemoveSort(): void; } export type IBindingList = IBindingList$instance; export interface IBindingListView$instance extends IBindingList, IList, ICollection, IEnumerable { Filter: string; readonly SortDescriptions: ListSortDescriptionCollection; readonly SupportsAdvancedSorting: boolean; readonly SupportsFiltering: boolean; readonly AllowNew: boolean; readonly AllowEdit: boolean; readonly AllowRemove: boolean; readonly SupportsChangeNotification: boolean; readonly SupportsSearching: boolean; readonly SupportsSorting: boolean; readonly IsSorted: boolean; readonly SortProperty: PropertyDescriptor; readonly SortDirection: ListSortDirection; Item: unknown; readonly IsReadOnly: boolean; readonly IsFixedSize: boolean; readonly Count: int; readonly SyncRoot: unknown; readonly IsSynchronized: boolean; Add(value: unknown): int; AddIndex(property: PropertyDescriptor): void; AddNew(): unknown; ApplySort(property: PropertyDescriptor, direction: ListSortDirection): void; ApplySort(sorts: ListSortDescriptionCollection): void; Contains(value: unknown): boolean; CopyTo(array: ClrArray, index: int): void; Find(property: PropertyDescriptor, key: unknown): int; GetEnumerator(): IEnumerator; Insert(index: int, value: unknown): void; Remove(value: unknown): void; RemoveAt(index: int): void; RemoveFilter(): void; } export type IBindingListView = IBindingListView$instance; export interface ICancelAddNew$instance { CancelNew(itemIndex: int): void; } export type ICancelAddNew = ICancelAddNew$instance; export interface IChangeTracking$instance { readonly IsChanged: boolean; AcceptChanges(): void; } export type IChangeTracking = IChangeTracking$instance; export interface IComNativeDescriptorHandler$instance { GetAttributes(component: unknown): AttributeCollection; GetClassName(component: unknown): string; GetConverter(component: unknown): TypeConverter; GetDefaultEvent(component: unknown): EventDescriptor; GetDefaultProperty(component: unknown): PropertyDescriptor; GetEditor(component: unknown, baseEditorType: Type): unknown; GetEvents(component: unknown, attributes: Attribute[]): EventDescriptorCollection; GetEvents(component: unknown): EventDescriptorCollection; GetProperties(component: unknown, attributes: Attribute[]): PropertyDescriptorCollection; GetPropertyValue(component: unknown, dispid: int, success: { value: ref<boolean> }): unknown; GetPropertyValue(component: unknown, propertyName: string, success: { value: ref<boolean> }): unknown; } export type IComNativeDescriptorHandler = IComNativeDescriptorHandler$instance; export interface IComponent$instance extends IDisposable { Site: ISite; Dispose(): void; } export interface IComponent$instance extends System_Internal.IDisposable$instance {} export type IComponent = IComponent$instance; export interface IContainer$instance extends IDisposable { readonly Components: ComponentCollection; Add(component: IComponent, name: string): void; Add(component: IComponent): void; Dispose(): void; } export interface IContainer$instance extends System_Internal.IDisposable$instance {} export type IContainer = IContainer$instance; export interface ICustomTypeDescriptor$instance { readonly RequireRegisteredTypes: Nullable_1<CLROf<boolean>>; GetAttributes(): AttributeCollection; GetClassName(): string; GetConverter(): TypeConverter; GetDefaultEvent(): EventDescriptor; GetDefaultProperty(): PropertyDescriptor; GetEditor(editorBaseType: Type): unknown; GetEvents(): EventDescriptorCollection; GetEvents(attributes: Attribute[]): EventDescriptorCollection; GetProperties(): PropertyDescriptorCollection; GetProperties(attributes: Attribute[]): PropertyDescriptorCollection; GetPropertyOwner(pd: PropertyDescriptor): unknown; } export type ICustomTypeDescriptor = ICustomTypeDescriptor$instance; export interface IDataErrorInfo$instance { readonly Item: string; readonly Error: string; } export type IDataErrorInfo = IDataErrorInfo$instance; export interface IEditableObject$instance { BeginEdit(): void; } export type IEditableObject = IEditableObject$instance; export interface IExtenderProvider$instance { CanExtend(extendee: unknown): boolean; } export type IExtenderProvider = IExtenderProvider$instance; export interface IIntellisenseBuilder$instance { readonly Name: string; Show(language: string, value: string, newValue: { value: ref<string> }): boolean; } export type IIntellisenseBuilder = IIntellisenseBuilder$instance; export interface IListSource$instance { readonly ContainsListCollection: boolean; GetList(): IList; } export type IListSource = IListSource$instance; export interface INestedContainer$instance extends IContainer, IDisposable { readonly Owner: IComponent; readonly Components: ComponentCollection; Add(component: IComponent, name: string): void; Add(component: IComponent): void; Dispose(): void; } export type INestedContainer = INestedContainer$instance; export interface INestedSite$instance extends ISite, IServiceProvider { readonly FullName: string; readonly Component: IComponent; readonly Container: IContainer; readonly DesignMode: boolean; Name: string; GetService(serviceType: Type): unknown; } export type INestedSite = INestedSite$instance; export interface INotifyDataErrorInfo$instance { readonly HasErrors: boolean; GetErrors(propertyName: string): IEnumerable; } export type INotifyDataErrorInfo = INotifyDataErrorInfo$instance; export interface INotifyPropertyChanged$instance { } export type INotifyPropertyChanged = INotifyPropertyChanged$instance; export interface INotifyPropertyChanging$instance { } export type INotifyPropertyChanging = INotifyPropertyChanging$instance; export interface IRaiseItemChangedEvents$instance { readonly RaisesItemChangedEvents: boolean; } export type IRaiseItemChangedEvents = IRaiseItemChangedEvents$instance; export interface IRevertibleChangeTracking$instance extends IChangeTracking { readonly IsChanged: boolean; RejectChanges(): void; } export interface IRevertibleChangeTracking$instance extends IChangeTracking$instance {} export type IRevertibleChangeTracking = IRevertibleChangeTracking$instance; export interface ISite$instance extends IServiceProvider { readonly Component: IComponent; readonly Container: IContainer; readonly DesignMode: boolean; Name: string; GetService(serviceType: Type): unknown; } export interface ISite$instance extends System_Internal.IServiceProvider$instance {} export type ISite = ISite$instance; export interface ISupportInitialize$instance { BeginInit(): void; } export type ISupportInitialize = ISupportInitialize$instance; export interface ISupportInitializeNotification$instance extends ISupportInitialize { readonly IsInitialized: boolean; BeginInit(): void; } export interface ISupportInitializeNotification$instance extends ISupportInitialize$instance {} export type ISupportInitializeNotification = ISupportInitializeNotification$instance; export interface ISynchronizeInvoke$instance { readonly InvokeRequired: boolean; BeginInvoke(method: Function, args: unknown[]): IAsyncResult; EndInvoke(result: IAsyncResult): unknown; Invoke(method: Function, args: unknown[]): unknown; } export type ISynchronizeInvoke = ISynchronizeInvoke$instance; export interface ITypeDescriptorContext$instance extends IServiceProvider { readonly Container: IContainer; readonly Instance: unknown; readonly PropertyDescriptor: PropertyDescriptor; GetService(serviceType: Type): unknown; OnComponentChanged(): void; OnComponentChanging(): boolean; } export interface ITypeDescriptorContext$instance extends System_Internal.IServiceProvider$instance {} export type ITypeDescriptorContext = ITypeDescriptorContext$instance; export interface ITypedList$instance { GetItemProperties(listAccessors: PropertyDescriptor[]): PropertyDescriptorCollection; GetListName(listAccessors: PropertyDescriptor[]): string; } export type ITypedList = ITypedList$instance; export interface AddingNewEventArgs$instance extends EventArgs { NewObject: unknown; } export const AddingNewEventArgs: { new(): AddingNewEventArgs$instance; new(newObject: unknown): AddingNewEventArgs$instance; }; export type AddingNewEventArgs = AddingNewEventArgs$instance; export interface AmbientValueAttribute$instance extends Attribute { readonly Value: unknown; Equals(obj: unknown): boolean; GetHashCode(): int; } export const AmbientValueAttribute: { new(type_: Type, value: string): AmbientValueAttribute$instance; new(value: char): AmbientValueAttribute$instance; new(value: byte): AmbientValueAttribute$instance; new(value: short): AmbientValueAttribute$instance; new(value: int): AmbientValueAttribute$instance; new(value: long): AmbientValueAttribute$instance; new(value: float): AmbientValueAttribute$instance; new(value: double): AmbientValueAttribute$instance; new(value: boolean): AmbientValueAttribute$instance; new(value: string): AmbientValueAttribute$instance; new(value: unknown): AmbientValueAttribute$instance; }; export type AmbientValueAttribute = AmbientValueAttribute$instance; export interface ArrayConverter$instance extends CollectionConverter { ConvertTo(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown, destinationType: Type): unknown; ConvertTo(value: unknown, destinationType: Type): unknown; GetProperties(context: ITypeDescriptorContext, value: unknown, attributes: Attribute[]): PropertyDescriptorCollection; GetProperties(value: unknown): PropertyDescriptorCollection; GetProperties(context: ITypeDescriptorContext, value: unknown): PropertyDescriptorCollection; GetPropertiesSupported(context: ITypeDescriptorContext): boolean; GetPropertiesSupported(): boolean; } export const ArrayConverter: { new(): ArrayConverter$instance; }; export type ArrayConverter = ArrayConverter$instance; export interface AsyncCompletedEventArgs$instance extends EventArgs { readonly Cancelled: boolean; readonly Error: Exception; readonly UserState: unknown; } export const AsyncCompletedEventArgs: { new(error: Exception, cancelled: boolean, userState: unknown): AsyncCompletedEventArgs$instance; }; export type AsyncCompletedEventArgs = AsyncCompletedEventArgs$instance; export interface AsyncOperation$instance { readonly SynchronizationContext: SynchronizationContext; readonly UserSuppliedState: unknown; OperationCompleted(): void; Post(d: SendOrPostCallback, arg: unknown): void; PostOperationCompleted(d: SendOrPostCallback, arg: unknown): void; } export const AsyncOperation: { new(): AsyncOperation$instance; }; export type AsyncOperation = AsyncOperation$instance; export interface AttributeCollection$instance { readonly Count: int; Contains(attribute: Attribute): boolean; Contains(attributes: Attribute[]): boolean; CopyTo(array: ClrArray, index: int): void; get_Item(index: int): Attribute; get_Item(attributeType: Type): Attribute; GetEnumerator(): IEnumerator; Matches(attribute: Attribute): boolean; Matches(attributes: Attribute[]): boolean; } export const AttributeCollection: { new(attributes: Attribute[]): AttributeCollection$instance; readonly Empty: AttributeCollection; FromExisting(existing: AttributeCollection, newAttributes: Attribute[]): AttributeCollection; }; export interface __AttributeCollection$views { As_ICollection(): System_Collections_Internal.ICollection$instance; As_IEnumerable(): System_Collections_Internal.IEnumerable$instance; } export type AttributeCollection = AttributeCollection$instance & __AttributeCollection$views; export interface AttributeProviderAttribute$instance extends Attribute { readonly PropertyName: string; readonly TypeName: string; } export const AttributeProviderAttribute: { new(typeName: string): AttributeProviderAttribute$instance; new(typeName: string, propertyName: string): AttributeProviderAttribute$instance; new(type_: Type): AttributeProviderAttribute$instance; }; export type AttributeProviderAttribute = AttributeProviderAttribute$instance; export interface BackgroundWorker$instance extends Component$instance { readonly CancellationPending: boolean; readonly IsBusy: boolean; WorkerReportsProgress: boolean; WorkerSupportsCancellation: boolean; CancelAsync(): void; Dispose(): void; ReportProgress(percentProgress: int): void; ReportProgress(percentProgress: int, userState: unknown): void; RunWorkerAsync(): void; RunWorkerAsync(argument: unknown): void; } export const BackgroundWorker: { new(): BackgroundWorker$instance; }; export interface __BackgroundWorker$views { As_IComponent(): IComponent$instance; As_IDisposable(): System_Internal.IDisposable$instance; } export interface BackgroundWorker$instance extends IComponent$instance {} export type BackgroundWorker = BackgroundWorker$instance & __BackgroundWorker$views; export interface BaseNumberConverter$instance extends TypeConverter { CanConvertFrom(context: ITypeDescriptorContext, sourceType: Type): boolean; CanConvertFrom(sourceType: Type): boolean; CanConvertTo(context: ITypeDescriptorContext, destinationType: Type): boolean; CanConvertTo(destinationType: Type): boolean; ConvertFrom(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown): unknown; ConvertFrom(value: unknown): unknown; ConvertTo(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown, destinationType: Type): unknown; ConvertTo(value: unknown, destinationType: Type): unknown; } export const BaseNumberConverter: { }; export type BaseNumberConverter = BaseNumberConverter$instance; export interface BindableAttribute$instance extends Attribute { readonly Bindable: boolean; readonly Direction: BindingDirection; Equals(obj: unknown): boolean; GetHashCode(): int; IsDefaultAttribute(): boolean; } export const BindableAttribute: { new(bindable: boolean): BindableAttribute$instance; new(bindable: boolean, direction: BindingDirection): BindableAttribute$instance; new(flags: BindableSupport): BindableAttribute$instance; new(flags: BindableSupport, direction: BindingDirection): BindableAttribute$instance; readonly Yes: BindableAttribute; readonly No: BindableAttribute; readonly Default: BindableAttribute; }; export type BindableAttribute = BindableAttribute$instance; export interface BindingList_1$instance<T> extends Collection_1<T> { AllowEdit: boolean; AllowNew: boolean; AllowRemove: boolean; RaiseListChangedEvents: boolean; Add(item: T): void; Add(value: unknown): int; AddNew(): T; CancelNew(itemIndex: int): void; Clear(): void; Contains(item: T): boolean; Contains(value: unknown): boolean; CopyTo(array: T[], index: int): void; CopyTo(array: ClrArray, index: int): void; EndNew(itemIndex: int): void; GetEnumerator(): IEnumerator_1<T>; GetEnumerator(): IEnumerator; IndexOf(item: T): int; Insert(index: int, item: T): void; Insert(index: int, value: unknown): void; Remove(item: T): boolean; Remove(value: unknown): void; RemoveAt(index: int): void; ResetBindings(): void; ResetItem(position: int): void; } export const BindingList_1: { new<T>(): BindingList_1$instance<T>; new<T>(list: IList_1<T>): BindingList_1$instance<T>; }; export interface __BindingList_1$views<T> { As_IBindingList(): IBindingList$instance; As_ICancelAddNew(): ICancelAddNew$instance; As_IRaiseItemChangedEvents(): IRaiseItemChangedEvents$instance; As_ICollection_1(): System_Collections_Generic_Internal.ICollection_1$instance<T>; As_IEnumerable_1(): System_Collections_Generic_Internal.IEnumerable_1$instance<T>; As_IList_1(): System_Collections_Generic_Internal.IList_1$instance<T>; As_IReadOnlyCollection_1(): System_Collections_Generic_Internal.IReadOnlyCollection_1$instance<T>; As_ICollection(): System_Collections_Internal.ICollection$instance; As_IEnumerable(): System_Collections_Internal.IEnumerable$instance; As_IList(): System_Collections_Internal.IList$instance; } export interface BindingList_1$instance<T> extends ICancelAddNew$instance, IRaiseItemChangedEvents$instance {} export type BindingList_1<T> = BindingList_1$instance<T> & __BindingList_1$views<T>; export interface BooleanConverter$instance extends TypeConverter { CanConvertFrom(context: ITypeDescriptorContext, sourceType: Type): boolean; CanConvertFrom(sourceType: Type): boolean; ConvertFrom(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown): unknown; ConvertFrom(value: unknown): unknown; GetStandardValues(context: ITypeDescriptorContext): TypeConverter_StandardValuesCollection; GetStandardValues(): ICollection; GetStandardValuesExclusive(context: ITypeDescriptorContext): boolean; GetStandardValuesExclusive(): boolean; GetStandardValuesSupported(context: ITypeDescriptorContext): boolean; GetStandardValuesSupported(): boolean; } export const BooleanConverter: { new(): BooleanConverter$instance; }; export type BooleanConverter = BooleanConverter$instance; export interface BrowsableAttribute$instance extends Attribute { readonly Browsable: boolean; Equals(obj: unknown): boolean; GetHashCode(): int; IsDefaultAttribute(): boolean; } export const BrowsableAttribute: { new(browsable: boolean): BrowsableAttribute$instance; readonly Yes: BrowsableAttribute; readonly No: BrowsableAttribute; readonly Default: BrowsableAttribute; }; export type BrowsableAttribute = BrowsableAttribute$instance; export interface ByteConverter$instance extends BaseNumberConverter { } export const ByteConverter: { new(): ByteConverter$instance; }; export type ByteConverter = ByteConverter$instance; export interface CancelEventArgs$instance extends EventArgs { Cancel: boolean; } export const CancelEventArgs: { new(): CancelEventArgs$instance; new(cancel: boolean): CancelEventArgs$instance; }; export type CancelEventArgs = CancelEventArgs$instance; export interface CategoryAttribute$instance extends Attribute { readonly Category: string; Equals(obj: unknown): boolean; GetHashCode(): int; IsDefaultAttribute(): boolean; } export const CategoryAttribute: { new(): CategoryAttribute$instance; new(category: string): CategoryAttribute$instance; readonly Action: CategoryAttribute; readonly Appearance: CategoryAttribute; readonly Asynchronous: CategoryAttribute; readonly Behavior: CategoryAttribute; readonly Data: CategoryAttribute; readonly Default: CategoryAttribute; readonly Design: CategoryAttribute; readonly DragDrop: CategoryAttribute; readonly Focus: CategoryAttribute; readonly Format: CategoryAttribute; readonly Key: CategoryAttribute; readonly Layout: CategoryAttribute; readonly Mouse: CategoryAttribute; readonly WindowStyle: CategoryAttribute; }; export type CategoryAttribute = CategoryAttribute$instance; export interface CharConverter$instance extends TypeConverter { CanConvertFrom(context: ITypeDescriptorContext, sourceType: Type): boolean; CanConvertFrom(sourceType: Type): boolean; ConvertFrom(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown): unknown; ConvertFrom(value: unknown): unknown; ConvertTo(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown, destinationType: Type): unknown; ConvertTo(value: unknown, destinationType: Type): unknown; } export const CharConverter: { new(): CharConverter$instance; }; export type CharConverter = CharConverter$instance; export interface CollectionChangeEventArgs$instance extends EventArgs { readonly Action: CollectionChangeAction; readonly Element: unknown; } export const CollectionChangeEventArgs: { new(action: CollectionChangeAction, element: unknown): CollectionChangeEventArgs$instance; }; export type CollectionChangeEventArgs = CollectionChangeEventArgs$instance; export interface CollectionConverter$instance extends TypeConverter { ConvertTo(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown, destinationType: Type): unknown; ConvertTo(value: unknown, destinationType: Type): unknown; GetProperties(context: ITypeDescriptorContext, value: unknown, attributes: Attribute[]): PropertyDescriptorCollection; GetProperties(value: unknown): PropertyDescriptorCollection; GetProperties(context: ITypeDescriptorContext, value: unknown): PropertyDescriptorCollection; } export const CollectionConverter: { new(): CollectionConverter$instance; }; export type CollectionConverter = CollectionConverter$instance; export interface ComplexBindingPropertiesAttribute$instance extends Attribute { readonly DataMember: string; readonly DataSource: string; Equals(obj: unknown): boolean; GetHashCode(): int; } export const ComplexBindingPropertiesAttribute: { new(): ComplexBindingPropertiesAttribute$instance; new(dataSource: string): ComplexBindingPropertiesAttribute$instance; new(dataSource: string, dataMember: string): ComplexBindingPropertiesAttribute$instance; readonly Default: ComplexBindingPropertiesAttribute; }; export type ComplexBindingPropertiesAttribute = ComplexBindingPropertiesAttribute$instance; export interface Component$instance extends MarshalByRefObject { readonly Container: IContainer; Site: ISite; Dispose(): void; ToString(): string; } export const Component: { new(): Component$instance; }; export interface __Component$views { As_IComponent(): IComponent$instance; As_IDisposable(): System_Internal.IDisposable$instance; } export type Component = Component$instance & __Component$views; export interface ComponentCollection$instance extends ReadOnlyCollectionBase { CopyTo(array: ClrArray, index: int): void; get_Item(name: string): IComponent; get_Item(index: int): IComponent; GetEnumerator(): IEnumerator; } export const ComponentCollection: { new(components: IComponent[]): ComponentCollection$instance; }; export interface __ComponentCollection$views { As_ICollection(): System_Collections_Internal.ICollection$instance; As_IEnumerable(): System_Collections_Internal.IEnumerable$instance; } export interface ComponentCollection$instance extends System_Collections_Internal.ICollection$instance {} export type ComponentCollection = ComponentCollection$instance & __ComponentCollection$views; export interface ComponentConverter$instance extends ReferenceConverter { GetProperties(context: ITypeDescriptorContext, value: unknown, attributes: Attribute[]): PropertyDescriptorCollection; GetProperties(value: unknown): PropertyDescriptorCollection; GetProperties(context: ITypeDescriptorContext, value: unknown): PropertyDescriptorCollection; GetPropertiesSupported(context: ITypeDescriptorContext): boolean; GetPropertiesSupported(): boolean; } export const ComponentConverter: { new(type_: Type): ComponentConverter$instance; }; export type ComponentConverter = ComponentConverter$instance; export interface ComponentEditor$instance { EditComponent(component: unknown): boolean; EditComponent(context: ITypeDescriptorContext, component: unknown): boolean; } export const ComponentEditor: { }; export type ComponentEditor = ComponentEditor$instance; export interface ComponentResourceManager$instance extends ResourceManager { ApplyResources(value: unknown, objectName: string): void; ApplyResources(value: unknown, objectName: string, culture: CultureInfo): void; ApplyResourcesToRegisteredType(value: unknown, objectName: string, culture: CultureInfo): void; } export const ComponentResourceManager: { new(): ComponentResourceManager$instance; new(t: Type): ComponentResourceManager$instance; }; export type ComponentResourceManager = ComponentResourceManager$instance; export interface Container$instance { readonly Components: ComponentCollection; Add(component: IComponent): void; Add(component: IComponent, name: string): void; Dispose(): void; Remove(component: IComponent): void; } export const Container: { new(): Container$instance; }; export interface __Container$views { As_IContainer(): IContainer$instance; As_IDisposable(): System_Internal.IDisposable$instance; } export type Container = Container$instance & __Container$views; export interface ContainerFilterService$instance { FilterComponents(components: ComponentCollection): ComponentCollection; } export const ContainerFilterService: { }; export type ContainerFilterService = ContainerFilterService$instance; export interface CultureInfoConverter$instance extends TypeConverter { CanConvertFrom(context: ITypeDescriptorContext, sourceType: Type): boolean; CanConvertFrom(sourceType: Type): boolean; CanConvertTo(context: ITypeDescriptorContext, destinationType: Type): boolean; CanConvertTo(destinationType: Type): boolean; ConvertFrom(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown): unknown; ConvertFrom(value: unknown): unknown; ConvertTo(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown, destinationType: Type): unknown; ConvertTo(value: unknown, destinationType: Type): unknown; GetStandardValues(context: ITypeDescriptorContext): TypeConverter_StandardValuesCollection; GetStandardValues(): ICollection; GetStandardValuesExclusive(context: ITypeDescriptorContext): boolean; GetStandardValuesExclusive(): boolean; GetStandardValuesSupported(context: ITypeDescriptorContext): boolean; GetStandardValuesSupported(): boolean; } export const CultureInfoConverter: { new(): CultureInfoConverter$instance; }; export type CultureInfoConverter = CultureInfoConverter$instance; export interface CustomTypeDescriptor$instance { readonly RequireRegisteredTypes: Nullable_1<CLROf<boolean>>; GetAttributes(): AttributeCollection; GetClassName(): string; GetComponentName(): string; GetConverter(): TypeConverter; GetConverterFromRegisteredType(): TypeConverter; GetDefaultEvent(): EventDescriptor; GetDefaultProperty(): PropertyDescriptor; GetEditor(editorBaseType: Type): unknown; GetEvents(): EventDescriptorCollection; GetEvents(attributes: Attribute[]): EventDescriptorCollection; GetEventsFromRegisteredType(): EventDescriptorCollection; GetProperties(): PropertyDescriptorCollection; GetProperties(attributes: Attribute[]): PropertyDescriptorCollection; GetPropertiesFromRegisteredType(): PropertyDescriptorCollection; GetPropertyOwner(pd: PropertyDescriptor): unknown; } export const CustomTypeDescriptor: { }; export interface __CustomTypeDescriptor$views { As_ICustomTypeDescriptor(): ICustomTypeDescriptor$instance; } export interface CustomTypeDescriptor$instance extends ICustomTypeDescriptor$instance {} export type CustomTypeDescriptor = CustomTypeDescriptor$instance & __CustomTypeDescriptor$views; export interface DataErrorsChangedEventArgs$instance extends EventArgs { readonly PropertyName: string; } export const DataErrorsChangedEventArgs: { new(propertyName: string): DataErrorsChangedEventArgs$instance; }; export type DataErrorsChangedEventArgs = DataErrorsChangedEventArgs$instance; export interface DataObjectAttribute$instance extends Attribute { readonly IsDataObject: boolean; Equals(obj: unknown): boolean; GetHashCode(): int; IsDefaultAttribute(): boolean; } export const DataObjectAttribute: { new(): DataObjectAttribute$instance; new(isDataObject: boolean): DataObjectAttribute$instance; readonly DataObject: DataObjectAttribute; readonly NonDataObject: DataObjectAttribute; readonly Default: DataObjectAttribute; }; export type DataObjectAttribute = DataObjectAttribute$instance; export interface DataObjectFieldAttribute$instance extends Attribute { readonly IsIdentity: boolean; readonly IsNullable: boolean; readonly Length: int; readonly PrimaryKey: boolean; Equals(obj: unknown): boolean; GetHashCode(): int; } export const DataObjectFieldAttribute: { new(primaryKey: boolean): DataObjectFieldAttribute$instance; new(primaryKey: boolean, isIdentity: boolean): DataObjectFieldAttribute$instance; new(primaryKey: boolean, isIdentity: boolean, isNullable: boolean): DataObjectFieldAttribute$instance; new(primaryKey: boolean, isIdentity: boolean, isNullable: boolean, length: int): DataObjectFieldAttribute$instance; }; export type DataObjectFieldAttribute = DataObjectFieldAttribute$instance; export interface DataObjectMethodAttribute$instance extends Attribute { readonly IsDefault: boolean; readonly MethodType: DataObjectMethodType; Equals(obj: unknown): boolean; GetHashCode(): int; Match(obj: unknown): boolean; } export const DataObjectMethodAttribute: { new(methodType: DataObjectMethodType): DataObjectMethodAttribute$instance; new(methodType: DataObjectMethodType, isDefault: boolean): DataObjectMethodAttribute$instance; }; export type DataObjectMethodAttribute = DataObjectMethodAttribute$instance; export interface DateOnlyConverter$instance extends TypeConverter { CanConvertFrom(context: ITypeDescriptorContext, sourceType: Type): boolean; CanConvertFrom(sourceType: Type): boolean; CanConvertTo(context: ITypeDescriptorContext, destinationType: Type): boolean; CanConvertTo(destinationType: Type): boolean; ConvertFrom(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown): unknown; ConvertFrom(value: unknown): unknown; ConvertTo(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown, destinationType: Type): unknown; ConvertTo(value: unknown, destinationType: Type): unknown; } export const DateOnlyConverter: { new(): DateOnlyConverter$instance; }; export type DateOnlyConverter = DateOnlyConverter$instance; export interface DateTimeConverter$instance extends TypeConverter { CanConvertFrom(context: ITypeDescriptorContext, sourceType: Type): boolean; CanConvertFrom(sourceType: Type): boolean; CanConvertTo(context: ITypeDescriptorContext, destinationType: Type): boolean; CanConvertTo(destinationType: Type): boolean; ConvertFrom(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown): unknown; ConvertFrom(value: unknown): unknown; ConvertTo(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown, destinationType: Type): unknown; ConvertTo(value: unknown, destinationType: Type): unknown; } export const DateTimeConverter: { new(): DateTimeConverter$instance; }; export type DateTimeConverter = DateTimeConverter$instance; export interface DateTimeOffsetConverter$instance extends TypeConverter { CanConvertFrom(context: ITypeDescriptorContext, sourceType: Type): boolean; CanConvertFrom(sourceType: Type): boolean; CanConvertTo(context: ITypeDescriptorContext, destinationType: Type): boolean; CanConvertTo(destinationType: Type): boolean; ConvertFrom(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown): unknown; ConvertFrom(value: unknown): unknown; ConvertTo(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown, destinationType: Type): unknown; ConvertTo(value: unknown, destinationType: Type): unknown; } export const DateTimeOffsetConverter: { new(): DateTimeOffsetConverter$instance; }; export type DateTimeOffsetConverter = DateTimeOffsetConverter$instance; export interface DecimalConverter$instance extends BaseNumberConverter { CanConvertTo(context: ITypeDescriptorContext, destinationType: Type): boolean; CanConvertTo(destinationType: Type): boolean; ConvertTo(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown, destinationType: Type): unknown; ConvertTo(value: unknown, destinationType: Type): unknown; } export const DecimalConverter: { new(): DecimalConverter$instance; }; export type DecimalConverter = DecimalConverter$instance; export interface DefaultBindingPropertyAttribute$instance extends Attribute { readonly Name: string; Equals(obj: unknown): boolean; GetHashCode(): int; } export const DefaultBindingPropertyAttribute: { new(): DefaultBindingPropertyAttribute$instance; new(name: string): DefaultBindingPropertyAttribute$instance; readonly Default: DefaultBindingPropertyAttribute; }; export type DefaultBindingPropertyAttribute = DefaultBindingPropertyAttribute$instance; export interface DefaultEventAttribute$instance extends Attribute { readonly Name: string; Equals(obj: unknown): boolean; GetHashCode(): int; } export const DefaultEventAttribute: { new(name: string): DefaultEventAttribute$instance; readonly Default: DefaultEventAttribute; }; export type DefaultEventAttribute = DefaultEventAttribute$instance; export interface DefaultPropertyAttribute$instance extends Attribute { readonly Name: string; Equals(obj: unknown): boolean; GetHashCode(): int; } export const DefaultPropertyAttribute: { new(name: string): DefaultPropertyAttribute$instance; readonly Default: DefaultPropertyAttribute; }; export type DefaultPropertyAttribute = DefaultPropertyAttribute$instance; export interface DefaultValueAttribute$instance extends Attribute { readonly Value: unknown; Equals(obj: unknown): boolean; GetHashCode(): int; } export const DefaultValueAttribute: { new(type_: Type, value: string): DefaultValueAttribute$instance; new(value: char): DefaultValueAttribute$instance; new(value: byte): DefaultValueAttribute$instance; new(value: short): DefaultValueAttribute$instance; new(value: int): DefaultValueAttribute$instance; new(value: long): DefaultValueAttribute$instance; new(value: float): DefaultValueAttribute$instance; new(value: double): DefaultValueAttribute$instance; new(value: boolean): DefaultValueAttribute$instance; new(value: string): DefaultValueAttribute$instance; new(value: unknown): DefaultValueAttribute$instance; new(value: sbyte): DefaultValueAttribute$instance; new(value: ushort): DefaultValueAttribute$instance; new(value: uint): DefaultValueAttribute$instance; new(value: ulong): DefaultValueAttribute$instance; }; export type DefaultValueAttribute = DefaultValueAttribute$instance; export interface DescriptionAttribute$instance extends Attribute { readonly Description: string; Equals(obj: unknown): boolean; GetHashCode(): int; IsDefaultAttribute(): boolean; } export const DescriptionAttribute: { new(): DescriptionAttribute$instance; new(description: string): DescriptionAttribute$instance; readonly Default: DescriptionAttribute; }; export type DescriptionAttribute = DescriptionAttribute$instance; export interface DesignerAttribute$instance extends Attribute { readonly DesignerBaseTypeName: string; readonly DesignerTypeName: string; readonly TypeId: unknown; Equals(obj: unknown): boolean; GetHashCode(): int; } export const DesignerAttribute: { new(designerTypeName: string): DesignerAttribute$instance; new(designerType: Type): DesignerAttribute$instance; new(designerTypeName: string, designerBaseTypeName: string): DesignerAttribute$instance; new(designerTypeName: string, designerBaseType: Type): DesignerAttribute$instance; new(designerType: Type, designerBaseType: Type): DesignerAttribute$instance; }; export type DesignerAttribute = DesignerAttribute$instance; export interface DesignerCategoryAttribute$instance extends Attribute { readonly Category: string; readonly TypeId: unknown; Equals(obj: unknown): boolean; GetHashCode(): int; IsDefaultAttribute(): boolean; } export const DesignerCategoryAttribute: { new(): DesignerCategoryAttribute$instance; new(category: string): DesignerCategoryAttribute$instance; readonly Component: DesignerCategoryAttribute; readonly Default: DesignerCategoryAttribute; readonly Form: DesignerCategoryAttribute; readonly Generic: DesignerCategoryAttribute; }; export type DesignerCategoryAttribute = DesignerCategoryAttribute$instance; export interface DesignerSerializationVisibilityAttribute$instance extends Attribute { readonly Visibility: DesignerSerializationVisibility; Equals(obj: unknown): boolean; GetHashCode(): int; IsDefaultAttribute(): boolean; } export const DesignerSerializationVisibilityAttribute: { new(visibility: DesignerSerializationVisibility): DesignerSerializationVisibilityAttribute$instance; readonly Content: DesignerSerializationVisibilityAttribute; readonly Hidden: DesignerSerializationVisibilityAttribute; readonly Visible: DesignerSerializationVisibilityAttribute; readonly Default: DesignerSerializationVisibilityAttribute; }; export type DesignerSerializationVisibilityAttribute = DesignerSerializationVisibilityAttribute$instance; export interface DesignOnlyAttribute$instance extends Attribute { readonly IsDesignOnly: boolean; Equals(obj: unknown): boolean; GetHashCode(): int; IsDefaultAttribute(): boolean; } export const DesignOnlyAttribute: { new(isDesignOnly: boolean): DesignOnlyAttribute$instance; readonly Yes: DesignOnlyAttribute; readonly No: DesignOnlyAttribute; readonly Default: DesignOnlyAttribute; }; export type DesignOnlyAttribute = DesignOnlyAttribute$instance; export interface DesignTimeVisibleAttribute$instance extends Attribute { readonly Visible: boolean; Equals(obj: unknown): boolean; GetHashCode(): int; IsDefaultAttribute(): boolean; } export const DesignTimeVisibleAttribute: { new(visible: boolean): DesignTimeVisibleAttribute$instance; new(): DesignTimeVisibleAttribute$instance; readonly Yes: DesignTimeVisibleAttribute; readonly No: DesignTimeVisibleAttribute; readonly Default: DesignTimeVisibleAttribute; }; export type DesignTimeVisibleAttribute = DesignTimeVisibleAttribute$instance; export interface DisplayNameAttribute$instance extends Attribute { readonly DisplayName: string; Equals(obj: unknown): boolean; GetHashCode(): int; IsDefaultAttribute(): boolean; } export const DisplayNameAttribute: { new(): DisplayNameAttribute$instance; new(displayName: string): DisplayNameAttribute$instance; readonly Default: DisplayNameAttribute; }; export type DisplayNameAttribute = DisplayNameAttribute$instance; export interface DoubleConverter$instance extends BaseNumberConverter { } export const DoubleConverter: { new(): DoubleConverter$instance; }; export type DoubleConverter = DoubleConverter$instance; export interface DoWorkEventArgs$instance extends CancelEventArgs { readonly Argument: unknown; Result: unknown; } export const DoWorkEventArgs: { new(argument: unknown): DoWorkEventArgs$instance; }; export type DoWorkEventArgs = DoWorkEventArgs$instance; export interface EditorAttribute$instance extends Attribute { readonly EditorBaseTypeName: string; readonly EditorTypeName: string; readonly TypeId: unknown; Equals(obj: unknown): boolean; GetHashCode(): int; } export const EditorAttribute: { new(): EditorAttribute$instance; new(typeName: string, baseTypeName: string): EditorAttribute$instance; new(typeName: string, baseType: Type): EditorAttribute$instance; new(type_: Type, baseType: Type): EditorAttribute$instance; }; export type EditorAttribute = EditorAttribute$instance; export interface EditorBrowsableAttribute$instance extends Attribute { readonly State: EditorBrowsableState; Equals(obj: unknown): boolean; GetHashCode(): int; } export const EditorBrowsableAttribute: { new(state: EditorBrowsableState): EditorBrowsableAttribute$instance; new(): EditorBrowsableAttribute$instance; }; export type EditorBrowsableAttribute = EditorBrowsableAttribute$instance; export interface EnumConverter$instance extends TypeConverter { CanConvertFrom(context: ITypeDescriptorContext, sourceType: Type): boolean; CanConvertFrom(sourceType: Type): boolean; CanConvertTo(context: ITypeDescriptorContext, destinationType: Type): boolean; CanConvertTo(destinationType: Type): boolean; ConvertFrom(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown): unknown; ConvertFrom(value: unknown): unknown; ConvertTo(context: ITypeDescriptorContext, culture: CultureInfo, value: unknown, destinationType: Type): unknown; ConvertTo(value: unknown, destinationType: Type): unknown; GetStandardValues(context: ITypeDescriptorContext): TypeConverter_StandardValuesCollection; GetStandardValues(): ICollection; GetStandardValuesExclusive(context: ITypeDescriptorContext): boolean; GetStandardValuesExclusive(): boolean; GetStandardValuesSupported(context: ITypeDescriptorContext): boolean; GetStandardValu