summaryrefslogtreecommitdiff
path: root/third_party/re2/src/app/_re2.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/re2/src/app/_re2.d.ts')
-rw-r--r--third_party/re2/src/app/_re2.d.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/third_party/re2/src/app/_re2.d.ts b/third_party/re2/src/app/_re2.d.ts
new file mode 100644
index 000000000..dff5e49de
--- /dev/null
+++ b/third_party/re2/src/app/_re2.d.ts
@@ -0,0 +1,23 @@
+// Copyright 2022 The RE2 Authors. All Rights Reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+export type Info = {
+ pattern: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string,
+ error: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string,
+ prefix: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string,
+ prefix_foldcase: boolean,
+ accel_prefix: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string,
+ accel_prefix_foldcase: boolean,
+ num_captures: number,
+ is_one_pass: boolean,
+ can_bit_state: boolean,
+ bytecode: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string,
+ bytemap: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string,
+};
+
+export interface MainModule {
+ getInfo(pattern: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string): Info;
+}
+
+export default function loadModule(): Promise<MainModule>;