plugin-tls 1.1.1 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/dist/extend/extend.d.ts +8 -8
  2. package/dist/extend/extend.d.ts.map +1 -1
  3. package/dist/extend/mixin.d.ts.map +1 -1
  4. package/dist/index.js +1038 -0
  5. package/dist/index.umd.cjs +1 -0
  6. package/dist/options-manager/ModeOptions.d.ts.map +1 -1
  7. package/dist/options-manager/OptionsManager.d.ts.map +1 -1
  8. package/dist/options-manager/TierOptions.d.ts.map +1 -1
  9. package/dist/options-manager/defaultOptions.d.ts +2 -2
  10. package/dist/options-manager/defaultOptions.d.ts.map +1 -1
  11. package/dist/plugin-host/PluginHost.d.ts +97 -20
  12. package/dist/plugin-host/PluginHost.d.ts.map +1 -1
  13. package/dist/plugin-host/TierModeOptionsPluginHost.d.ts +83 -18
  14. package/dist/plugin-host/TierModeOptionsPluginHost.d.ts.map +1 -1
  15. package/dist/plugin-host/TierOptionsPluginHost.d.ts +80 -10
  16. package/dist/plugin-host/TierOptionsPluginHost.d.ts.map +1 -1
  17. package/dist/plugin-manager/PluginManager.d.ts +1 -1
  18. package/dist/plugin-manager/PluginManager.d.ts.map +1 -1
  19. package/doc/api/index.md +23 -3
  20. package/doc/api/plugin-tls.adddefaultoptions.md +51 -6
  21. package/doc/api/plugin-tls.addinstoptions.md +60 -6
  22. package/doc/api/plugin-tls.allfunctionapply.md +59 -5
  23. package/doc/api/plugin-tls.becomepluginhost.md +1 -1
  24. package/doc/api/plugin-tls.becomepluginhost_extends.md +45 -11
  25. package/doc/api/plugin-tls.becomepluginhost_proxy.md +32 -4
  26. package/doc/api/plugin-tls.becometiermodeoptionshost.md +1 -1
  27. package/doc/api/plugin-tls.becometieroptionshost.md +1 -1
  28. package/doc/api/plugin-tls.classextender.md +1 -1
  29. package/doc/api/plugin-tls.classextenderprivatemember.md +65 -5
  30. package/doc/api/plugin-tls.classextenderprivatememberwithinit.md +44 -4
  31. package/doc/api/plugin-tls.classextenderwithinit.md +1 -1
  32. package/doc/api/plugin-tls.classtype._new_.md +31 -3
  33. package/doc/api/plugin-tls.classtype.md +21 -3
  34. package/doc/api/plugin-tls.createcallerofprivatememberofextend.md +31 -3
  35. package/doc/api/plugin-tls.createextendtarget.md +33 -3
  36. package/doc/api/plugin-tls.createextendtargetwithinit.md +35 -5
  37. package/doc/api/plugin-tls.createmixintarget.md +31 -3
  38. package/doc/api/plugin-tls.createpluginhost.md +114 -9
  39. package/doc/api/plugin-tls.createpropertysetter.md +45 -4
  40. package/doc/api/plugin-tls.createtargetextend.md +33 -3
  41. package/doc/api/plugin-tls.createtargetextendwithinit.md +35 -5
  42. package/doc/api/plugin-tls.createtargetmixin.md +33 -3
  43. package/doc/api/plugin-tls.createtiermodeoptionspluginhost.md +117 -11
  44. package/doc/api/plugin-tls.createtieroptionspluginhost.md +114 -9
  45. package/doc/api/plugin-tls.defineextend.md +49 -4
  46. package/doc/api/plugin-tls.defineextendwithinit.md +49 -4
  47. package/doc/api/plugin-tls.definemixin.md +49 -4
  48. package/doc/api/plugin-tls.extendtarget.md +49 -4
  49. package/doc/api/plugin-tls.extendtargetwithinit.md +49 -4
  50. package/doc/api/plugin-tls.getpropertyvalue.md +45 -4
  51. package/doc/api/plugin-tls.getpropertyvaluebypath.md +45 -4
  52. package/doc/api/plugin-tls.gettargetproperties.md +45 -4
  53. package/doc/api/plugin-tls.hostinst.md +1 -1
  54. package/doc/api/plugin-tls.idefaultoptionshost.md +41 -3
  55. package/doc/api/plugin-tls.iplugin.created.md +49 -4
  56. package/doc/api/plugin-tls.iplugin.destroyed.md +49 -4
  57. package/doc/api/plugin-tls.iplugin.md +45 -5
  58. package/doc/api/plugin-tls.iplugin.used.md +49 -4
  59. package/doc/api/plugin-tls.ipluginhost.md +23 -3
  60. package/doc/api/plugin-tls.ipluginhost.use.md +45 -4
  61. package/doc/api/plugin-tls.ipluginhostconstructor.md +23 -3
  62. package/doc/api/plugin-tls.ipluginhostconstructor.use.md +49 -4
  63. package/doc/api/plugin-tls.ipluginwithinit.inited.md +49 -4
  64. package/doc/api/plugin-tls.ipluginwithinit.md +23 -3
  65. package/doc/api/plugin-tls.itiermodeoptionshost.md +58 -4
  66. package/doc/api/plugin-tls.itieroptionshost.md +41 -3
  67. package/doc/api/plugin-tls.md +960 -92
  68. package/doc/api/plugin-tls.mergeproperties.md +45 -4
  69. package/doc/api/plugin-tls.mixin_4.md +49 -4
  70. package/doc/api/plugin-tls.mixintarget.md +49 -4
  71. package/doc/api/plugin-tls.modeoptions._constructor_.md +31 -3
  72. package/doc/api/plugin-tls.modeoptions._constructor__1.md +47 -4
  73. package/doc/api/plugin-tls.modeoptions.getfullmodeoption.md +31 -3
  74. package/doc/api/plugin-tls.modeoptions.getmodeoption.md +31 -3
  75. package/doc/api/plugin-tls.modeoptions.hasmode.md +31 -3
  76. package/doc/api/plugin-tls.modeoptions.md +347 -23
  77. package/doc/api/plugin-tls.modeoptions.setmodeoption.md +77 -6
  78. package/doc/api/plugin-tls.parsepropertypath.md +31 -3
  79. package/doc/api/{plugin-tls.pluginhost.destroy.md → plugin-tls.pluginhost.destroythis.md} +3 -3
  80. package/doc/api/plugin-tls.pluginhost.md +150 -11
  81. package/doc/api/plugin-tls.pluginhost.use.md +49 -4
  82. package/doc/api/plugin-tls.pluginmanager._constructor_.md +33 -3
  83. package/doc/api/plugin-tls.pluginmanager.created.md +33 -3
  84. package/doc/api/plugin-tls.pluginmanager.destroyed.md +33 -3
  85. package/doc/api/plugin-tls.pluginmanager.instuse.md +61 -5
  86. package/doc/api/plugin-tls.pluginmanager.md +187 -14
  87. package/doc/api/plugin-tls.pluginmanager.use.md +49 -4
  88. package/doc/api/plugin-tls.pluginmanagerwithinit.inited.md +33 -3
  89. package/doc/api/plugin-tls.pluginmanagerwithinit.md +31 -3
  90. package/doc/api/plugin-tls.privatememberofextend._constructor.md +31 -3
  91. package/doc/api/plugin-tls.privatememberofextend.md +35 -5
  92. package/doc/api/plugin-tls.privatememberofextendwithinit._init.md +31 -3
  93. package/doc/api/plugin-tls.privatememberofextendwithinit.md +24 -4
  94. package/doc/api/plugin-tls.setpropertyvalue.md +59 -5
  95. package/doc/api/plugin-tls.setpropertyvaluebypath.md +59 -5
  96. package/doc/api/plugin-tls.targetextend.md +49 -4
  97. package/doc/api/plugin-tls.targetextendwithinit.md +49 -4
  98. package/doc/api/plugin-tls.targetmixin.md +49 -4
  99. package/doc/api/plugin-tls.tiermodeoptions._constructor_.md +31 -3
  100. package/doc/api/plugin-tls.tiermodeoptions._constructor__1.md +63 -5
  101. package/doc/api/plugin-tls.tiermodeoptions.getfullmodeoption.md +31 -3
  102. package/doc/api/plugin-tls.tiermodeoptions.getmember.md +31 -3
  103. package/doc/api/plugin-tls.tiermodeoptions.getmodeoptionmanager.md +31 -3
  104. package/doc/api/plugin-tls.tiermodeoptions.getvalue.md +31 -3
  105. package/doc/api/plugin-tls.tiermodeoptions.hasmodeontier.md +31 -3
  106. package/doc/api/plugin-tls.tiermodeoptions.md +227 -17
  107. package/doc/api/plugin-tls.tiermodeoptionsdecorator.md +45 -4
  108. package/doc/api/plugin-tls.tiermodeoptionspluginhost._constructor_.md +31 -3
  109. package/doc/api/plugin-tls.tiermodeoptionspluginhost.md +152 -10
  110. package/doc/api/plugin-tls.tieroptions._constructor_.md +49 -4
  111. package/doc/api/plugin-tls.tieroptions.getmember.md +31 -3
  112. package/doc/api/plugin-tls.tieroptions.getvalue.md +31 -3
  113. package/doc/api/plugin-tls.tieroptions.md +209 -15
  114. package/doc/api/plugin-tls.tieroptionsdecorator.md +45 -4
  115. package/doc/api/plugin-tls.tieroptionspluginhost._constructor_.md +31 -3
  116. package/doc/api/plugin-tls.tieroptionspluginhost.md +116 -8
  117. package/package.json +29 -20
  118. package/dist/plugin-tls.d.ts +0 -1329
  119. package/dist/plugin-tls.iife.js +0 -1
  120. package/dist/plugin-tls.mjs +0 -1064
  121. package/dist/plugin-tls.umd.js +0 -1
  122. package/dist/tsdoc-metadata.json +0 -11
@@ -14,9 +14,39 @@ export declare function createExtendTarget<C extends ClassType>(cla: C): <E>(ext
14
14
 
15
15
  ## Parameters
16
16
 
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | cla | C | 扩展的目标,也用作 this 的类型 |
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ cla
36
+
37
+
38
+ </td><td>
39
+
40
+ C
41
+
42
+
43
+ </td><td>
44
+
45
+ 扩展的目标,也用作 this 的类型
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
20
50
 
21
51
  **Returns:**
22
52
 
@@ -9,18 +9,48 @@
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export declare function createExtendTargetWithInit<C extends ClassType>(cla: C): <E>(ext: E & ThisType<InstanceType<C> & E> & PrivateMemberOfExtendWithInit<C, any>) => ClassType<ConstructorParameters<C>, E & ThisType<InstanceType<C> & E>>;
12
+ export declare function createExtendTargetWithInit<C extends ClassType>(cla: C): <E>(ext: E & ThisType<InstanceType<C> & E> & PrivateMemberOfExtendWithInit<C>) => ClassType<ConstructorParameters<C>, E & ThisType<InstanceType<C> & E>>;
13
13
  ```
14
14
 
15
15
  ## Parameters
16
16
 
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | cla | C | 扩展的目标,也用作 this 的类型 |
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ cla
36
+
37
+
38
+ </td><td>
39
+
40
+ C
41
+
42
+
43
+ </td><td>
44
+
45
+ 扩展的目标,也用作 this 的类型
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
20
50
 
21
51
  **Returns:**
22
52
 
23
- &lt;E&gt;(ext: E &amp; ThisType&lt;InstanceType&lt;C&gt; &amp; E&gt; &amp; [PrivateMemberOfExtendWithInit](./plugin-tls.privatememberofextendwithinit.md)<!-- -->&lt;C, any&gt;) =&gt; [ClassType](./plugin-tls.classtype.md)<!-- -->&lt;ConstructorParameters&lt;C&gt;, E &amp; ThisType&lt;InstanceType&lt;C&gt; &amp; E&gt;&gt;
53
+ &lt;E&gt;(ext: E &amp; ThisType&lt;InstanceType&lt;C&gt; &amp; E&gt; &amp; [PrivateMemberOfExtendWithInit](./plugin-tls.privatememberofextendwithinit.md)<!-- -->&lt;C&gt;) =&gt; [ClassType](./plugin-tls.classtype.md)<!-- -->&lt;ConstructorParameters&lt;C&gt;, E &amp; ThisType&lt;InstanceType&lt;C&gt; &amp; E&gt;&gt;
24
54
 
25
55
  可以用于 扩展目标 的便利函数
26
56
 
@@ -14,9 +14,37 @@ export declare function createMixinTarget<T>(target: T): <M>(m: M & ThisType<T &
14
14
 
15
15
  ## Parameters
16
16
 
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | target | T | |
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ target
36
+
37
+
38
+ </td><td>
39
+
40
+ T
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td></tr>
47
+ </tbody></table>
20
48
 
21
49
  **Returns:**
22
50
 
@@ -9,20 +9,125 @@
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export declare function createPluginHost<HOST, Plugin extends IPlugin<HOST, any> = IPlugin<HOST, any>>(): {
13
- new (): {
14
- readonly pluginManager: PluginManager<any, IPlugin<any, any>>;
15
- use<P extends Plugin>(plugin: P, ...options: FormatUsePluginParameters<P>): void | PluginCreatedReturnType<P>;
16
- destroy(): void;
12
+ export declare function createPluginHost<HOST, P extends new (...args: any) => Object, Plugin extends IPlugin<HOST, any> = IPlugin<HOST, any>>(ParentClass: P): {
13
+ new (...args: any): {
14
+ get pluginManager(): PluginManager<any, IPlugin<any, any>>;
15
+ use<P_1 extends Plugin>(plugin: P_1, ...options: FormatUsePluginParameters<P_1>): PluginCreatedReturnType<P_1> | void;
16
+ destroyThis(): void;
17
+ readonly isDestroyed: boolean;
18
+ _isDestroyed: boolean;
19
+ _destroyers: import("@gby/destroyable").FunDestroyer[];
20
+ disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
21
+ cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
22
+ disposeObj<T extends unknown>(obj: T, sync?: boolean): T;
23
+ cancelDisposeObj<T extends unknown>(obj: T): T;
24
+ dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
25
+ dispose<T extends unknown>(obj: T, asyncDestroy?: boolean): T;
26
+ dispose<T extends unknown>(objOrFun: T, asyncDestroy?: boolean): T;
27
+ cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
28
+ cancelDispose<T extends unknown>(obj: T): T;
29
+ cancelDispose<T extends unknown>(objOrFun: T): T;
30
+ destroy(): true | undefined;
31
+ destroyAsync(): Promise<true | undefined>;
32
+ constructor: Function;
33
+ toString: (() => string) & (() => string);
34
+ toLocaleString: (() => string) & (() => string);
35
+ valueOf: (() => Object) & (() => Object);
36
+ hasOwnProperty: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean);
37
+ isPrototypeOf: ((v: Object) => boolean) & ((v: Object) => boolean);
38
+ propertyIsEnumerable: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean);
17
39
  };
18
- readonly pluginManager: PluginManager<typeof PluginHost & HOST, Plugin>;
19
- _pluginManager: PluginManager<typeof PluginHost & HOST, Plugin>;
40
+ get pluginManager(): PluginManager<typeof PluginHost & HOST & (new (...args: any) => {
41
+ readonly isDestroyed: boolean;
42
+ _isDestroyed: boolean;
43
+ _destroyers: import("@gby/destroyable").FunDestroyer[];
44
+ disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
45
+ cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
46
+ disposeObj<T extends any>(obj: T, sync?: boolean): T;
47
+ cancelDisposeObj<T extends any>(obj: T): T;
48
+ dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
49
+ dispose<T extends any>(obj: T, asyncDestroy?: boolean): T;
50
+ dispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T;
51
+ cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
52
+ cancelDispose<T extends any>(obj: T): T;
53
+ cancelDispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T): T;
54
+ destroyThis(): void;
55
+ destroy(): true | undefined;
56
+ destroyAsync(): Promise<true | undefined>;
57
+ constructor: Function;
58
+ toString(): string;
59
+ toLocaleString(): string;
60
+ valueOf(): Object;
61
+ hasOwnProperty(v: PropertyKey): boolean;
62
+ isPrototypeOf(v: Object): boolean;
63
+ propertyIsEnumerable(v: PropertyKey): boolean;
64
+ }) & P, Plugin>;
65
+ _pluginManager: PluginManager<typeof PluginHost & HOST & (new (...args: any) => {
66
+ readonly isDestroyed: boolean;
67
+ _isDestroyed: boolean;
68
+ _destroyers: import("@gby/destroyable").FunDestroyer[];
69
+ disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
70
+ cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
71
+ disposeObj<T extends any>(obj: T, sync?: boolean): T;
72
+ cancelDisposeObj<T extends any>(obj: T): T;
73
+ dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
74
+ dispose<T extends any>(obj: T, asyncDestroy?: boolean): T;
75
+ dispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T;
76
+ cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
77
+ cancelDispose<T extends any>(obj: T): T;
78
+ cancelDispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T): T;
79
+ destroyThis(): void;
80
+ destroy(): true | undefined;
81
+ destroyAsync(): Promise<true | undefined>;
82
+ constructor: Function;
83
+ toString(): string;
84
+ toLocaleString(): string;
85
+ valueOf(): Object;
86
+ hasOwnProperty(v: PropertyKey): boolean;
87
+ isPrototypeOf(v: Object): boolean;
88
+ propertyIsEnumerable(v: PropertyKey): boolean;
89
+ }) & P, Plugin>;
20
90
  use<P_1 extends Plugin>(plugin: P_1, ...options: FormatUsePluginParameters<P_1>): void | ReturnType<P_1["used"]>;
21
- };
91
+ } & P;
22
92
  ```
93
+
94
+ ## Parameters
95
+
96
+ <table><thead><tr><th>
97
+
98
+ Parameter
99
+
100
+
101
+ </th><th>
102
+
103
+ Type
104
+
105
+
106
+ </th><th>
107
+
108
+ Description
109
+
110
+
111
+ </th></tr></thead>
112
+ <tbody><tr><td>
113
+
114
+ ParentClass
115
+
116
+
117
+ </td><td>
118
+
119
+ P
120
+
121
+
122
+ </td><td>
123
+
124
+
125
+ </td></tr>
126
+ </tbody></table>
127
+
23
128
  **Returns:**
24
129
 
25
- { new (): { readonly pluginManager: [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;any, [IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;any, any&gt;&gt;; use&lt;P extends Plugin&gt;(plugin: P, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P&gt;): void \| [PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- -->&lt;P&gt;; destroy(): void; }; readonly pluginManager: [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof [PluginHost](./plugin-tls.pluginhost.md) &amp; HOST, Plugin&gt;; \_pluginManager: [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof [PluginHost](./plugin-tls.pluginhost.md) &amp; HOST, Plugin&gt;; use&lt;P\_1 extends Plugin&gt;(plugin: P\_1, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P\_1&gt;): void \| ReturnType&lt;P\_1\["used"\]&gt;; }
130
+ { new (...args: any): { get pluginManager(): [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;any, [IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;any, any&gt;&gt;; use&lt;P\_1 extends Plugin&gt;(plugin: P\_1, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P\_1&gt;): [PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- -->&lt;P\_1&gt; \| void; destroyThis(): void; readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends unknown&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends unknown&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends unknown&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends unknown&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends unknown&gt;(obj: T): T; cancelDispose&lt;T extends unknown&gt;(objOrFun: T): T; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; constructor: Function; toString: (() =&gt; string) &amp; (() =&gt; string); toLocaleString: (() =&gt; string) &amp; (() =&gt; string); valueOf: (() =&gt; Object) &amp; (() =&gt; Object); hasOwnProperty: ((v: PropertyKey) =&gt; boolean) &amp; ((v: PropertyKey) =&gt; boolean); isPrototypeOf: ((v: Object) =&gt; boolean) &amp; ((v: Object) =&gt; boolean); propertyIsEnumerable: ((v: PropertyKey) =&gt; boolean) &amp; ((v: PropertyKey) =&gt; boolean); }; get pluginManager(): [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof [PluginHost](./plugin-tls.pluginhost.md) &amp; HOST &amp; (new (...args: any) =&gt; { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends any&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends any&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends any&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends any&gt;(obj: T): T; cancelDispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) &amp; P, Plugin&gt;; \_pluginManager: [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof [PluginHost](./plugin-tls.pluginhost.md) &amp; HOST &amp; (new (...args: any) =&gt; { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends any&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends any&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends any&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends any&gt;(obj: T): T; cancelDispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) &amp; P, Plugin&gt;; use&lt;P\_1 extends Plugin&gt;(plugin: P\_1, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P\_1&gt;): void \| ReturnType&lt;P\_1\["used"\]&gt;; } &amp; P
26
131
 
27
132
 
28
133
  ## Remarks
@@ -17,10 +17,51 @@ export declare function createPropertySetter(target: any, props: any): {
17
17
 
18
18
  ## Parameters
19
19
 
20
- | Parameter | Type | Description |
21
- | --- | --- | --- |
22
- | target | any | |
23
- | props | any | |
20
+ <table><thead><tr><th>
21
+
22
+ Parameter
23
+
24
+
25
+ </th><th>
26
+
27
+ Type
28
+
29
+
30
+ </th><th>
31
+
32
+ Description
33
+
34
+
35
+ </th></tr></thead>
36
+ <tbody><tr><td>
37
+
38
+ target
39
+
40
+
41
+ </td><td>
42
+
43
+ any
44
+
45
+
46
+ </td><td>
47
+
48
+
49
+ </td></tr>
50
+ <tr><td>
51
+
52
+ props
53
+
54
+
55
+ </td><td>
56
+
57
+ any
58
+
59
+
60
+ </td><td>
61
+
62
+
63
+ </td></tr>
64
+ </tbody></table>
24
65
 
25
66
  **Returns:**
26
67
 
@@ -14,9 +14,39 @@ export declare function createTargetExtend<C extends ClassType>(cla: C): <E>(ext
14
14
 
15
15
  ## Parameters
16
16
 
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | cla | C | 扩展的目标,也用作 this 的类型 |
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ cla
36
+
37
+
38
+ </td><td>
39
+
40
+ C
41
+
42
+
43
+ </td><td>
44
+
45
+ 扩展的目标,也用作 this 的类型
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
20
50
 
21
51
  **Returns:**
22
52
 
@@ -9,18 +9,48 @@
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export declare function createTargetExtendWithInit<C extends ClassType>(cla: C): <E>(ext: E & ThisType<InstanceType<C> & E> & PrivateMemberOfExtendWithInit<C, any>) => E & ThisType<C & E>;
12
+ export declare function createTargetExtendWithInit<C extends ClassType>(cla: C): <E>(ext: E & ThisType<InstanceType<C> & E> & PrivateMemberOfExtendWithInit<C>) => E & ThisType<C & E>;
13
13
  ```
14
14
 
15
15
  ## Parameters
16
16
 
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | cla | C | 扩展的目标,也用作 this 的类型 |
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ cla
36
+
37
+
38
+ </td><td>
39
+
40
+ C
41
+
42
+
43
+ </td><td>
44
+
45
+ 扩展的目标,也用作 this 的类型
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
20
50
 
21
51
  **Returns:**
22
52
 
23
- &lt;E&gt;(ext: E &amp; ThisType&lt;InstanceType&lt;C&gt; &amp; E&gt; &amp; [PrivateMemberOfExtendWithInit](./plugin-tls.privatememberofextendwithinit.md)<!-- -->&lt;C, any&gt;) =&gt; E &amp; ThisType&lt;C &amp; E&gt;
53
+ &lt;E&gt;(ext: E &amp; ThisType&lt;InstanceType&lt;C&gt; &amp; E&gt; &amp; [PrivateMemberOfExtendWithInit](./plugin-tls.privatememberofextendwithinit.md)<!-- -->&lt;C&gt;) =&gt; E &amp; ThisType&lt;C &amp; E&gt;
24
54
 
25
55
  可以用于 扩展目标 的便利函数
26
56
 
@@ -14,9 +14,39 @@ export declare function createTargetMixin<T>(target: T): <M>(m: M & ThisType<T &
14
14
 
15
15
  ## Parameters
16
16
 
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | target | T | 混合的目标,用作 this 的类型 |
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ target
36
+
37
+
38
+ </td><td>
39
+
40
+ T
41
+
42
+
43
+ </td><td>
44
+
45
+ 混合的目标,用作 this 的类型
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
20
50
 
21
51
  **Returns:**
22
52
 
@@ -9,24 +9,130 @@
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export declare function createTierModeOptionsPluginHost<HOST, Options extends {}, Mode extends string | number = string>(): {
12
+ export declare function createTierModeOptionsPluginHost<HOST, P extends new (...args: any) => Object, Options extends {}, Mode extends string | number = string>(ParentClass: P): {
13
13
  new (options: Options): {
14
- readonly modeOptions: TierModeOptions<Mode, Options>;
14
+ get modeOptions(): TierModeOptions<Mode, Options>;
15
15
  _modeOptions: TierModeOptions<Mode, Options>;
16
- mode: Mode;
17
- readonly options: Options;
18
- readonly pluginManager: import("..").PluginManager<any, import("..").IPlugin<any, any>>;
19
- use<P extends import("..").IPlugin<HOST, any>>(plugin: P, ...options: import("..").FormatUsePluginParameters<P>): void | import("..").PluginCreatedReturnType<P>;
20
- destroy(): void;
16
+ get mode(): Mode;
17
+ set mode(value: Mode);
18
+ get options(): Options;
19
+ get pluginManager(): import("..").PluginManager<any, import("..").IPlugin<any, any>>;
20
+ use<P_1 extends import("..").IPlugin<HOST, any>>(plugin: P_1, ...options: import("..").FormatUsePluginParameters<P_1>): void | import("..").PluginCreatedReturnType<P_1>;
21
+ destroyThis(): void;
22
+ readonly isDestroyed: boolean;
23
+ _isDestroyed: boolean;
24
+ _destroyers: import("@gby/destroyable").FunDestroyer[];
25
+ disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
26
+ cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
27
+ disposeObj<T extends unknown>(obj: T, sync?: boolean): T;
28
+ cancelDisposeObj<T extends unknown>(obj: T): T;
29
+ dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
30
+ dispose<T extends unknown>(obj: T, asyncDestroy?: boolean): T;
31
+ dispose<T extends unknown>(objOrFun: T, asyncDestroy?: boolean): T;
32
+ cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
33
+ cancelDispose<T extends unknown>(obj: T): T;
34
+ cancelDispose<T extends unknown>(objOrFun: T): T;
35
+ destroy(): true | undefined;
36
+ destroyAsync(): Promise<true | undefined>;
37
+ constructor: Function;
38
+ toString: (() => string) & (() => string);
39
+ toLocaleString: (() => string) & (() => string);
40
+ valueOf: (() => Object) & (() => Object);
41
+ hasOwnProperty: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean);
42
+ isPrototypeOf: ((v: Object) => boolean) & ((v: Object) => boolean);
43
+ propertyIsEnumerable: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean);
21
44
  };
22
45
  readonly modeOptions: TierModeOptions<string, Options>;
23
- readonly pluginManager: import("..").PluginManager<typeof import("./PluginHost").PluginHost & HOST, import("..").IPlugin<HOST, any>>;
24
- _pluginManager: import("..").PluginManager<typeof import("./PluginHost").PluginHost & HOST, import("..").IPlugin<HOST, any>>;
46
+ get pluginManager(): import("..").PluginManager<typeof import("./PluginHost").PluginHost & HOST & (new (...args: any) => {
47
+ readonly isDestroyed: boolean;
48
+ _isDestroyed: boolean;
49
+ _destroyers: import("@gby/destroyable").FunDestroyer[];
50
+ disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
51
+ cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
52
+ disposeObj<T extends any>(obj: T, sync?: boolean): T;
53
+ cancelDisposeObj<T extends any>(obj: T): T;
54
+ dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
55
+ dispose<T extends any>(obj: T, asyncDestroy?: boolean): T;
56
+ dispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T;
57
+ cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
58
+ cancelDispose<T extends any>(obj: T): T;
59
+ cancelDispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T): T;
60
+ destroyThis(): void;
61
+ destroy(): true | undefined;
62
+ destroyAsync(): Promise<true | undefined>;
63
+ constructor: Function;
64
+ toString(): string;
65
+ toLocaleString(): string;
66
+ valueOf(): Object;
67
+ hasOwnProperty(v: PropertyKey): boolean;
68
+ isPrototypeOf(v: Object): boolean;
69
+ propertyIsEnumerable(v: PropertyKey): boolean;
70
+ }) & P, import("..").IPlugin<HOST, any>>;
71
+ _pluginManager: import("..").PluginManager<typeof import("./PluginHost").PluginHost & HOST & (new (...args: any) => {
72
+ readonly isDestroyed: boolean;
73
+ _isDestroyed: boolean;
74
+ _destroyers: import("@gby/destroyable").FunDestroyer[];
75
+ disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
76
+ cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
77
+ disposeObj<T extends any>(obj: T, sync?: boolean): T;
78
+ cancelDisposeObj<T extends any>(obj: T): T;
79
+ dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
80
+ dispose<T extends any>(obj: T, asyncDestroy?: boolean): T;
81
+ dispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T;
82
+ cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
83
+ cancelDispose<T extends any>(obj: T): T;
84
+ cancelDispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T): T;
85
+ destroyThis(): void;
86
+ destroy(): true | undefined;
87
+ destroyAsync(): Promise<true | undefined>;
88
+ constructor: Function;
89
+ toString(): string;
90
+ toLocaleString(): string;
91
+ valueOf(): Object;
92
+ hasOwnProperty(v: PropertyKey): boolean;
93
+ isPrototypeOf(v: Object): boolean;
94
+ propertyIsEnumerable(v: PropertyKey): boolean;
95
+ }) & P, import("..").IPlugin<HOST, any>>;
25
96
  use<P_1 extends import("..").IPlugin<HOST, any>>(plugin: P_1, ...options: import("..").FormatUsePluginParameters<P_1>): void | ReturnType<P_1["used"]>;
26
- };
97
+ } & P;
27
98
  ```
99
+
100
+ ## Parameters
101
+
102
+ <table><thead><tr><th>
103
+
104
+ Parameter
105
+
106
+
107
+ </th><th>
108
+
109
+ Type
110
+
111
+
112
+ </th><th>
113
+
114
+ Description
115
+
116
+
117
+ </th></tr></thead>
118
+ <tbody><tr><td>
119
+
120
+ ParentClass
121
+
122
+
123
+ </td><td>
124
+
125
+ P
126
+
127
+
128
+ </td><td>
129
+
130
+
131
+ </td></tr>
132
+ </tbody></table>
133
+
28
134
  **Returns:**
29
135
 
30
- { new (options: Options): { readonly modeOptions: [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- -->&lt;Mode, Options&gt;; \_modeOptions: [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- -->&lt;Mode, Options&gt;; mode: Mode; readonly options: Options; readonly pluginManager: import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;any, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;any, any&gt;&gt;; use&lt;P extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;(plugin: P, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P&gt;): void \| import("..").[PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- -->&lt;P&gt;; destroy(): void; }; readonly modeOptions: [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- -->&lt;string, Options&gt;; readonly pluginManager: import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) &amp; HOST, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;; \_pluginManager: import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) &amp; HOST, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;; use&lt;P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P\_1&gt;): void \| ReturnType&lt;P\_1\["used"\]&gt;; }
136
+ { new (options: Options): { get modeOptions(): [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- -->&lt;Mode, Options&gt;; \_modeOptions: [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- -->&lt;Mode, Options&gt;; get mode(): Mode; set mode(value: Mode); get options(): Options; get pluginManager(): import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;any, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;any, any&gt;&gt;; use&lt;P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P\_1&gt;): void \| import("..").[PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- -->&lt;P\_1&gt;; destroyThis(): void; readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends unknown&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends unknown&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends unknown&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends unknown&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends unknown&gt;(obj: T): T; cancelDispose&lt;T extends unknown&gt;(objOrFun: T): T; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; constructor: Function; toString: (() =&gt; string) &amp; (() =&gt; string); toLocaleString: (() =&gt; string) &amp; (() =&gt; string); valueOf: (() =&gt; Object) &amp; (() =&gt; Object); hasOwnProperty: ((v: PropertyKey) =&gt; boolean) &amp; ((v: PropertyKey) =&gt; boolean); isPrototypeOf: ((v: Object) =&gt; boolean) &amp; ((v: Object) =&gt; boolean); propertyIsEnumerable: ((v: PropertyKey) =&gt; boolean) &amp; ((v: PropertyKey) =&gt; boolean); }; readonly modeOptions: [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- -->&lt;string, Options&gt;; get pluginManager(): import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) &amp; HOST &amp; (new (...args: any) =&gt; { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends any&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends any&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends any&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends any&gt;(obj: T): T; cancelDispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) &amp; P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;; \_pluginManager: import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) &amp; HOST &amp; (new (...args: any) =&gt; { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends any&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends any&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends any&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends any&gt;(obj: T): T; cancelDispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) &amp; P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;; use&lt;P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P\_1&gt;): void \| ReturnType&lt;P\_1\["used"\]&gt;; } &amp; P
31
137
 
32
138