dolphindb 3.0.3 → 3.0.20

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.
package/i18n/dict.json CHANGED
@@ -79,5 +79,11 @@
79
79
  },
80
80
  "流数据订阅后一定先返回 schema": {
81
81
  "en": "After subscribing to streaming data, the schema must be returned first."
82
+ },
83
+ "{{form}} {{type}} 暂不支持 data()": {
84
+ "en": "{{form}} {{type}} does not support data() yet"
85
+ },
86
+ " 暂时不支持转换为 js 对象": {
87
+ "en": " conversion to js object is not supported at the moment"
82
88
  }
83
89
  }
package/i18n/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { I18N } from 'xshell/i18n/index.js';
2
- import _dict from './dict.json' assert { type: 'json' };
2
+ import _dict from './dict.json' with { type: 'json' };
3
3
  export let i18n = new I18N(_dict);
4
4
  const { t, language } = i18n;
5
5
  export { t, language };
package/i18n/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC3C,OAAO,KAAK,MAAM,aAAa,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAA;AAEvD,MAAM,CAAC,IAAI,IAAI,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAA;AACjC,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;AAC5B,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAA","sourcesContent":["import { I18N } from 'xshell/i18n/index.js'\nimport _dict from './dict.json' assert { type: 'json' }\n\nexport let i18n = new I18N(_dict)\nconst { t, language } = i18n\nexport { t, language }\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC3C,OAAO,KAAK,MAAM,aAAa,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAErD,MAAM,CAAC,IAAI,IAAI,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAA;AACjC,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;AAC5B,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAA","sourcesContent":["import { I18N } from 'xshell/i18n/index.js'\nimport _dict from './dict.json' with { type: 'json' }\n\nexport let i18n = new I18N(_dict)\nconst { t, language } = i18n\nexport { t, language }\n"]}
package/index.d.ts CHANGED
@@ -1,11 +1,117 @@
1
1
  /// <reference types="node" resolution-mode="require"/>
2
2
  import type { InspectOptions as UtilInspectOptions } from 'util';
3
3
  import { inspect, Lock, type WebSocket, type WebSocketConnectionError } from 'xshell';
4
- import { type DdbDecimal128Value, type DdbDecimal128VectorValue } from './data-types/decimal-128.js';
5
- import { BigInt128Array } from './shared/bigint-128-array.js';
6
- import { DdbChartType, DdbDurationUnit, DdbForm, DdbFunctionType, DdbType, DdbVoidType } from './shared/constants.js';
7
- export * from './shared/constants.js';
8
- export type { DdbDecimal128Value, DdbDecimal128VectorValue } from './data-types/decimal-128.js';
4
+ export declare const nulls: {
5
+ readonly int8: -128;
6
+ readonly int16: -32768;
7
+ readonly int32: -2147483648;
8
+ readonly int64: -9223372036854775808n;
9
+ readonly int128: -170141183460469231731687303715884105728n;
10
+ readonly float32: -3.4028234663852886e+38;
11
+ /** -Number.MAX_VALUE */
12
+ readonly double: number;
13
+ readonly bytes16: Uint8Array;
14
+ };
15
+ export declare enum DdbForm {
16
+ scalar = 0,
17
+ vector = 1,
18
+ pair = 2,
19
+ matrix = 3,
20
+ set = 4,
21
+ dict = 5,
22
+ table = 6,
23
+ chart = 7,
24
+ /** 节点内部通信可能会使用,调用函数执行脚本一般不会返回这种类型 */
25
+ chunk = 8,
26
+ /** sysobj */
27
+ object = 9
28
+ }
29
+ /** DolphinDB DataType
30
+ 对应的 array vector 类型为 64 + 基本类型
31
+ 对应的 extended 类型为 128 + 基本类型 */
32
+ export declare enum DdbType {
33
+ void = 0,
34
+ bool = 1,
35
+ char = 2,
36
+ short = 3,
37
+ int = 4,
38
+ long = 5,
39
+ date = 6,
40
+ month = 7,
41
+ time = 8,
42
+ minute = 9,
43
+ second = 10,
44
+ datetime = 11,
45
+ timestamp = 12,
46
+ nanotime = 13,
47
+ nanotimestamp = 14,
48
+ float = 15,
49
+ double = 16,
50
+ symbol = 17,
51
+ string = 18,
52
+ uuid = 19,
53
+ functiondef = 20,
54
+ handle = 21,
55
+ code = 22,
56
+ datasource = 23,
57
+ resource = 24,
58
+ any = 25,
59
+ compressed = 26,
60
+ dict = 27,
61
+ datehour = 28,
62
+ ipaddr = 30,
63
+ int128 = 31,
64
+ blob = 32,
65
+ complex = 34,
66
+ point = 35,
67
+ duration = 36,
68
+ decimal32 = 37,
69
+ decimal64 = 38,
70
+ decimal128 = 39,
71
+ object = 40,
72
+ pynone = 41,
73
+ symbol_extended = 145
74
+ }
75
+ export declare enum DdbFunctionType {
76
+ SystemFunc = 0,
77
+ SystemProc = 1,
78
+ OperatorFunc = 2,
79
+ UserDefinedFunc = 3,
80
+ PartialFunc = 4,
81
+ DynamicFunc = 5,
82
+ PiecewiseFunc = 6,
83
+ JitFunc = 7,
84
+ JitPartialFunc = 8
85
+ }
86
+ export declare enum DdbDurationUnit {
87
+ ns = 0,
88
+ us = 1,
89
+ ms = 2,
90
+ s = 3,
91
+ m = 4,
92
+ H = 5,
93
+ d = 6,
94
+ w = 7,
95
+ M = 8,
96
+ y = 9,
97
+ B = 10
98
+ }
99
+ export declare enum DdbChartType {
100
+ area = 0,
101
+ bar = 1,
102
+ column = 2,
103
+ histogram = 3,
104
+ line = 4,
105
+ pie = 5,
106
+ scatter = 6,
107
+ trend = 7,
108
+ kline = 8
109
+ }
110
+ export declare enum DdbVoidType {
111
+ undefined = 0,
112
+ null = 1,
113
+ default = 2
114
+ }
9
115
  export interface DdbFunctionDefValue {
10
116
  type: DdbFunctionType;
11
117
  name: string;
@@ -16,17 +122,23 @@ export interface DdbDurationValue {
16
122
  data: number;
17
123
  }
18
124
  export interface DdbDecimal32Value {
19
- /** int32, data 需要除以 10^scale 得到原值 data needs to be divided by 10^scale to get the original value */
125
+ /** int32, data 需要除以 10^scale 得到原值 */
20
126
  scale: number;
21
127
  /** int32, 空值为 null ddb null is js null */
22
128
  data: number | null;
23
129
  }
24
130
  export interface DdbDecimal64Value {
25
- /** int32, data 需要除以 10^scale 得到原值 data needs to be divided by 10^scale to get the original value */
131
+ /** int32, data 需要除以 10^scale 得到原值 */
26
132
  scale: number;
27
133
  /** int64, 空值为 null empty value is null */
28
134
  data: bigint | null;
29
135
  }
136
+ export interface DdbDecimal128Value {
137
+ /** int32, data 需要除以 10^scale 得到原值 */
138
+ scale: number;
139
+ /** int128, 空值为 null empty value is null */
140
+ data: bigint | null;
141
+ }
30
142
  export interface DdbDecimal32VectorValue {
31
143
  scale: number;
32
144
  data: Int32Array;
@@ -35,6 +147,11 @@ export interface DdbDecimal64VectorValue {
35
147
  scale: number;
36
148
  data: BigInt64Array;
37
149
  }
150
+ export interface DdbDecimal128VectorValue {
151
+ scale: number;
152
+ data: BigInt128Array;
153
+ }
154
+ export type DdbDecimalVectorValue = DdbDecimal32VectorValue | DdbDecimal64VectorValue | DdbDecimal128VectorValue;
38
155
  export type DdbDurationVectorValue = DdbDurationValue[];
39
156
  export interface DdbSymbolExtendedValue {
40
157
  base_id: number;
@@ -50,9 +167,10 @@ export interface DdbArrayVectorBlock {
50
167
  export type DdbArrayVectorValue = DdbArrayVectorBlock[] & /* decimal 数据会有这个属性 */ {
51
168
  scale?: number;
52
169
  };
170
+ export declare const dictables: Set<DdbType>;
53
171
  export interface DdbMatrixValue {
54
- rows: DdbVectorObj;
55
- cols: DdbVectorObj;
172
+ rows: DdbVectorObj | null;
173
+ cols: DdbVectorObj | null;
56
174
  data: DdbVectorValue;
57
175
  }
58
176
  export type DdbDictValue = [DdbVectorObj, DdbVectorObj];
@@ -98,6 +216,32 @@ export type DdbTableObj<TColumns extends DdbVectorObj[] = DdbVectorObj[]> = DdbO
98
216
  export type DdbDictObj<TKeys extends DdbVectorObj = DdbVectorObj, TValues extends DdbVectorObj = DdbVectorObj> = DdbObj<[TKeys, TValues]>;
99
217
  export type DdbMatrixObj<TValue extends DdbMatrixValue = DdbMatrixValue> = DdbObj<TValue>;
100
218
  export type DdbChartObj = DdbObj<DdbChartValue>;
219
+ /** DdbObj.data() 返回的表格对象 */
220
+ export interface DdbTableData<TRow = any> {
221
+ /** 表名 */
222
+ name: string;
223
+ /** 每一列的名称 */
224
+ columns: string[];
225
+ /** 每一列的原始 ddb 数据类型 */
226
+ types: DdbType[];
227
+ /** 表格数据,每一行的对象组成的数组 */
228
+ data: TRow[];
229
+ }
230
+ /** DdbObj.data() 返回的矩阵对象 */
231
+ export interface DdbMatrixData {
232
+ /** 原始数据类型 */
233
+ type: DdbType;
234
+ /** 行数 */
235
+ nrows: number;
236
+ /** 列数 */
237
+ ncolumns: number;
238
+ /** 行名称 */
239
+ rows?: any[];
240
+ /** 列名称 */
241
+ columns?: any[];
242
+ /** 数据, data[0][1] 为第 0 行第 1 列数据 */
243
+ data: any[][];
244
+ }
101
245
  /** 可以表示所有 DolphinDB 数据库中的数据类型 Can represent data types in all DolphinDB databases */
102
246
  export declare class DdbObj<TValue extends DdbValue = DdbValue> {
103
247
  static dec: TextDecoder;
@@ -118,15 +262,13 @@ export declare class DdbObj<TValue extends DdbValue = DdbValue> {
118
262
  length: number;
119
263
  /** table name / column name */
120
264
  name?: string;
121
- /**
122
- 最低维、第 1 维
265
+ /** 最低维、第 1 维
123
266
  - vector: rows = n, cols = 1
124
267
  - pair: rows = 2, cols = 1
125
268
  - matrix: rows = n, cols = m
126
269
  - set: 同 vector
127
270
  - dict: 包含 keys, values 向量
128
- - table: 同 matrix
129
- */
271
+ - table: 同 matrix */
130
272
  rows?: number;
131
273
  /** 第 2 维 */
132
274
  cols?: number;
@@ -142,8 +284,7 @@ export declare class DdbObj<TValue extends DdbValue = DdbValue> {
142
284
  static parse(buf: Uint8Array, le: boolean): DdbObj<DdbValue>;
143
285
  static parse_scalar(buf: Uint8Array, le: boolean, type: DdbType): [number, DdbScalarValue];
144
286
  /** parse: rows, cols, items
145
- 返回的 ddbobj.length 不包括 vector 的 type 和 form
146
- */
287
+ 返回的 ddbobj.length 不包括 vector 的 type 和 form */
147
288
  static parse_vector(buf: Uint8Array, le: boolean, type: DdbType): DdbVectorObj;
148
289
  /** 有可能没有字节对齐,不能直接使用原有 message 的 arraybuffer, 统一复制出来,让原有 arraybuffer 被回收掉比较好 */
149
290
  static parse_vector_items(buf: Uint8Array, le: boolean, type: DdbType, length: number): [
@@ -152,20 +293,30 @@ export declare class DdbObj<TValue extends DdbValue = DdbValue> {
152
293
  ];
153
294
  pack(): Uint8Array;
154
295
  static pack_vector_body(value: DdbVectorValue, type: DdbType, length: number): ArrayBufferView[];
296
+ /** 将 DdbObj 转换为 js 原生数据类型
297
+ - 标量对应 number, bigint 或者字符串
298
+ - 数组对应 js 原生数组
299
+ - 表格对应 DdbTableData
300
+ - 矩阵对应 DdbMatrixData
301
+ - 字典对应普通的 js 对象 Record<string, any>
302
+ - 图对应 DdbChartValue */
303
+ data<TResult extends any[]>(this: DdbVectorObj): TResult;
304
+ data<TResult = any>(this: DdbObj): TResult;
155
305
  [inspect.custom](depth: number, _options: InspectOptions, _inspect: any): string;
156
306
  inspect_type(): string;
157
307
  /** 自动转换 js string, boolean 为 DdbObj */
158
308
  static to_ddbobj(value: DdbObj | string | boolean): DdbObj;
159
309
  /** 转换 js 数组为 DdbObj[] */
160
310
  static to_ddbobjs(values: (DdbObj | string | boolean)[]): DdbObj<DdbValue>[];
161
- /** 将 table 转换为 rows,空值转换为 null */
311
+ /** 将 table 转换为 rows,空值转换为 null
312
+ @deprecated 用 data() */
162
313
  to_rows<T extends Record<string, any> = Record<string, any>>(): T[];
163
314
  /** 将 dict<string, any> 自动转换为 js object (Record<string, any>) Automatically convert dict<string, any> to js object (Record<string, any>)
315
+ @deprecated 用 data()
164
316
  - options?:
165
317
  - strip?: `false` 是否将 dict<string, any> 中的 value 直接提取、剥离出来作为 js object 的 value (丢弃 DdbObj 中的其余信息,只保留 value)
166
318
  - deep?: `false` 是否递归转换
167
- Whether to convert recursively
168
- */
319
+ Whether to convert recursively */
169
320
  to_dict<T extends Record<string, DdbObj> = Record<string, DdbObj>>(): T;
170
321
  to_dict<T extends Record<string, any> = Record<string, any>>(options: {
171
322
  strip: true;
@@ -175,6 +326,11 @@ export declare class DdbObj<TValue extends DdbValue = DdbValue> {
175
326
  deep?: boolean;
176
327
  }): T;
177
328
  }
329
+ /** 根据 DdbType 获取其名称,array vector type 自动在后面加上 [] */
330
+ export declare function get_type_name(type: DdbType): string;
331
+ export declare function is_decimal_type(type: DdbType): boolean;
332
+ export declare function is_decimal_null_value(type: DdbType, value: number | bigint): boolean;
333
+ export declare function get_duration_unit(code: number): string;
178
334
  export interface InspectOptions extends UtilInspectOptions {
179
335
  /** `util.inspect.defaultOptions.colors` */
180
336
  colors?: boolean;
@@ -187,6 +343,9 @@ export interface InspectOptions extends UtilInspectOptions {
187
343
  export declare function format(type: DdbType, value: DdbValue, le: boolean, options?: InspectOptions): string;
188
344
  /** 格式化向量、集合中的第 index 项为字符串,空值返回 'null' 字符串 formatted vector, the index-th item in the collection is a string, a null value returns a 'null' string */
189
345
  export declare function formati(obj: DdbVectorObj, index: number, options?: InspectOptions): string;
346
+ export declare function convert(type: DdbType, value: DdbValue, le: boolean): string | number | bigint | boolean | Uint8Array | Int32Array | BigInt64Array | string[] | Int8Array | Int16Array | Float32Array | Float64Array | Uint8Array[] | number[] | DdbFunctionDefValue | DdbDurationValue | DdbDecimal32Value | DdbDecimal64Value | DdbDecimal32VectorValue | DdbDecimal64VectorValue | DdbDecimal128VectorValue | BigInt128Array | DdbSymbolExtendedValue | DdbArrayVectorValue | DdbMatrixValue | DdbObj<DdbValue>[] | DdbDurationVectorValue | DdbChartValue;
347
+ /** 转换一个向量到 js 原生数组 */
348
+ export declare function converts(type: DdbType, value: DdbVectorValue, rows: number, le: boolean): any[];
190
349
  export declare class DdbVoid extends DdbObj<undefined> {
191
350
  constructor(value?: DdbVoidType);
192
351
  }
@@ -361,15 +520,17 @@ export interface StreamingMessage extends StreamingParams {
361
520
  error?: Error;
362
521
  }
363
522
  export declare const winsize: 100000;
523
+ export interface DdbEvalOptions {
524
+ urgent?: boolean;
525
+ listener?: DdbMessageListener;
526
+ parse_object?: boolean;
527
+ }
364
528
  type DdbRpcType = 'script' | 'function' | 'variable' | 'connect';
365
- export interface DdbRpcOptions {
529
+ export interface DdbRpcOptions extends DdbEvalOptions {
366
530
  script?: string;
367
531
  func?: string;
368
532
  args?: (DdbObj | string | boolean)[];
369
533
  vars?: string[];
370
- urgent?: boolean;
371
- listener?: DdbMessageListener;
372
- parse_object?: boolean;
373
534
  skip_connection_check?: boolean;
374
535
  on_more_messages?: (buffer: Uint8Array) => void;
375
536
  }
@@ -403,6 +564,14 @@ export interface DdbOptions {
403
564
  verbose?: boolean;
404
565
  proxy?: string;
405
566
  }
567
+ export interface DdbCallOptions extends DdbEvalOptions {
568
+ node?: string;
569
+ nodes?: string[];
570
+ func_type?: DdbFunctionType;
571
+ add_node_alias?: boolean;
572
+ skip_connection_check?: boolean;
573
+ on_more_messages?: DdbRpcOptions['on_more_messages'];
574
+ }
406
575
  export declare class DDB {
407
576
  /** 当前的 session id (http 或 tcp) */
408
577
  sid: string;
@@ -438,7 +607,6 @@ export declare class DDB {
438
607
  print_object_buffer: boolean;
439
608
  print_message: boolean;
440
609
  parse_object: boolean;
441
- pnode_run_defined: boolean;
442
610
  /** 在 websocket 收到的第一个 error 时,
443
611
  在 connect_websocket 的 on_error 回调中构造 DdbConnectionError 并保存到 DDB 对象上,
444
612
  这个 error 的错误信息最准确 */
@@ -449,6 +617,8 @@ export declare class DDB {
449
617
  pconnect: Promise<void>;
450
618
  /** 首次定义 pnode_run 的 promise,保证并发调用 rpc 时只定义一次 pnode_run */
451
619
  ppnode_run: Promise<DdbVoid>;
620
+ /** 首次定义 invoke 的 promise,保证并发调用 rpc 时只定义一次 invoke */
621
+ pinvoke: Promise<DdbVoid>;
452
622
  get connected(): boolean;
453
623
  /**
454
624
  使用 WebSocket URL 初始化连接到 DolphinDB 的实例(不建立实际的网络连接)
@@ -539,13 +709,8 @@ export declare class DDB {
539
709
  不做解析,以便后续转发、序列化
540
710
  Set parse_object during this rpc, and restore the original after the end.
541
711
  When it is false, the returned DdbObj only contains buffer and le without parsing,
542
- so as to facilitate subsequent forwarding and serialization
543
- */
544
- eval<T extends DdbObj>(script: string, { urgent, listener, parse_object, }?: {
545
- urgent?: boolean;
546
- listener?: DdbMessageListener;
547
- parse_object?: boolean;
548
- }): Promise<T>;
712
+ so as to facilitate subsequent forwarding and serialization */
713
+ eval<T extends DdbObj>(script: string, { urgent, listener, parse_object, }?: DdbEvalOptions): Promise<T>;
549
714
  /** call function through websocket (function command)
550
715
  - func: 函数名 function name
551
716
  - args?: `[ ]` 调用参数 (传入的原生 string 和 boolean 会被自动转换为 DdbObj<string> 和 DdbObj<boolean>)
@@ -572,17 +737,24 @@ export declare class DDB {
572
737
  将这个 flag 设为 true 跳过连接状态检查
573
738
  (internal use) When await ddb.connect() establishes a connection for the first time, you cannot call await this.connect() again to ensure the connection status, which will lead to circular dependencies.
574
739
  Set this flag to true to skip connection status checks */
575
- call<TResult extends DdbObj>(func: string, args?: (DdbObj | string | boolean)[], { urgent, node, nodes, func_type, add_node_alias, listener, parse_object, skip_connection_check, on_more_messages }?: {
576
- urgent?: boolean;
577
- node?: string;
578
- nodes?: string[];
579
- func_type?: DdbFunctionType;
580
- add_node_alias?: boolean;
581
- listener?: DdbMessageListener;
582
- parse_object?: boolean;
583
- skip_connection_check?: boolean;
584
- on_more_messages?: DdbRpcOptions['on_more_messages'];
585
- }): Promise<TResult>;
740
+ call<TResult extends DdbObj>(func: string, args?: (DdbObj | string | boolean)[], { urgent, node, nodes, func_type, add_node_alias, listener, parse_object, skip_connection_check, on_more_messages }?: DdbCallOptions): Promise<TResult>;
741
+ /** 调用 dolphindb 函数,传入 js 原生数组作为参数,返回 js 原生对象或值(调用 DdbObj.data() 后的结果)
742
+ - func: 函数名
743
+ - args?: `[ ]` 调用参数,可以是 js 原生数组
744
+ - options?: 调用选项
745
+ - urgent?: 紧急 flag。使用 urgent worker 执行,防止被其它作业阻塞
746
+ - node?: 设置结点 alias 时发送到集群中对应的结点执行 (使用 DolphinDB 中的 rpc 方法)
747
+ - nodes?: 设置多个结点 alias 时发送到集群中对应的多个结点执行 (使用 DolphinDB 中的 pnodeRun 方法)
748
+ - func_type?: 设置 node 参数且参数数组为空时必传,需指定函数类型,其它情况下不传
749
+ - add_node_alias?: 设置 nodes 参数时选传,其它情况不传
750
+ - listener?: 处理本次 rpc 期间的消息 (DdbMessage) */
751
+ invoke<TResult = any>(func: string, args?: any[], options?: DdbCallOptions): Promise<TResult>;
752
+ /** 执行 dolphindb 脚本,返回 js 原生对象或值(调用 DdbObj.data() 后的结果)
753
+ - script?: 执行的脚本
754
+ - options?: 执行选项
755
+ - urgent?: 紧急 flag,确保提交的脚本使用 urgent worker 处理,防止被其它作业阻塞
756
+ - listener?: 处理本次 rpc 期间的消息 (DdbMessage) */
757
+ execute<TResult = any>(script: string, options?: DdbEvalOptions): Promise<TResult>;
586
758
  /** upload variable through websocket (variable command) */
587
759
  upload(
588
760
  /** 上传的变量名 Uploaded variables' name */
@@ -615,3 +787,31 @@ export interface DdbErrorMessage {
615
787
  data: DdbDatabaseError;
616
788
  }
617
789
  export type DdbMessage = DdbPrintMessage | DdbObjectMessage | DdbErrorMessage;
790
+ export declare class BigInt128Array {
791
+ static of(...items: bigint[]): BigInt128Array;
792
+ static from(arrayLike: ArrayLike<bigint>): BigInt128Array;
793
+ static from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt128Array;
794
+ readonly BYTES_PER_ELEMENT: number;
795
+ readonly buffer: ArrayBufferLike;
796
+ readonly byteLength: number;
797
+ readonly byteOffset: number;
798
+ constructor(length?: number);
799
+ constructor(array: Iterable<bigint>);
800
+ constructor(buffer: ArrayBufferLike, byteOffset?: number, length?: number);
801
+ get length(): number;
802
+ set(array: ArrayLike<bigint>, offset?: number): void;
803
+ at(index: number): bigint;
804
+ subarray(begin?: number, end?: number): BigInt128Array;
805
+ [Symbol.iterator](): {
806
+ next(): {
807
+ value: bigint;
808
+ done: boolean;
809
+ } | {
810
+ done: boolean;
811
+ value?: undefined;
812
+ };
813
+ };
814
+ toString(): string;
815
+ [inspect.custom](): string;
816
+ }
817
+ export {};