1// Copyright 2022 The RE2 Authors. All Rights Reserved. 2// Use of this source code is governed by a BSD-style 3// license that can be found in the LICENSE file. 4 5export type Info = { 6 pattern: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string, 7 error: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string, 8 prefix: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string, 9 prefix_foldcase: boolean, 10 accel_prefix: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string, 11 accel_prefix_foldcase: boolean, 12 num_captures: number, 13 is_one_pass: boolean, 14 can_bit_state: boolean, 15 bytecode: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string, 16 bytemap: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string, 17}; 18 19export interface MainModule { 20 getInfo(pattern: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string): Info; 21} 22 23export default function loadModule(): Promise<MainModule>; 24