/* tslint:disable */ /* eslint-disable */ /** * 计算表达式 */ export function eval_expr(expr: string): string; /** * 计算表达式(返回数字,用于 !n 指令) */ export function eval_expr_num(expr: string): number; /** * 计算表达式(返回是否成功) */ export function eval_expr_safe(expr: string): string; export function str_abs(a: string): string; export function str_ceil(a: string): string; export function str_compare(a: string, b: string): number; export function str_cos(a: string): string; export function str_div(a: string, b: string): string; export function str_eq(a: string, b: string): boolean; export function str_exp(a: string): string; export function str_floor(a: string): string; export function str_fract(a: string): string; export function str_gt(a: string, b: string): boolean; export function str_gte(a: string, b: string): boolean; export function str_is_integer(a: string): boolean; export function str_is_negative(a: string): boolean; export function str_is_positive(a: string): boolean; export function str_is_zero(a: string): boolean; export function str_ln(a: string): string; export function str_log10(a: string): string; export function str_lt(a: string, b: string): boolean; export function str_lte(a: string, b: string): boolean; export function str_max(a: string, b: string): string; export function str_min(a: string, b: string): string; export function str_mod(a: string, b: string): string; export function str_mul(a: string, b: string): string; export function str_neg(a: string): string; export function str_normalize(a: string): string; export function str_plus(a: string, b: string): string; export function str_pow(a: string, n: bigint): string; export function str_powd(a: string, b: string): string; export function str_round(a: string): string; export function str_round_dp(a: string, dp: number): string; export function str_round_dp_bankers(a: string, dp: number): string; export function str_scale(a: string): number; export function str_sign(a: string): number; export function str_sin(a: string): string; export function str_sqrt(a: string): string; export function str_sub(a: string, b: string): string; export function str_tan(a: string): string; export function str_trunc(a: string): string; export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; export interface InitOutput { readonly memory: WebAssembly.Memory; readonly eval_expr: (a: number, b: number) => [number, number]; readonly eval_expr_num: (a: number, b: number) => number; readonly eval_expr_safe: (a: number, b: number) => [number, number]; readonly str_abs: (a: number, b: number) => [number, number]; readonly str_ceil: (a: number, b: number) => [number, number]; readonly str_compare: (a: number, b: number, c: number, d: number) => number; readonly str_cos: (a: number, b: number) => [number, number]; readonly str_div: (a: number, b: number, c: number, d: number) => [number, number]; readonly str_eq: (a: number, b: number, c: number, d: number) => number; readonly str_exp: (a: number, b: number) => [number, number]; readonly str_floor: (a: number, b: number) => [number, number]; readonly str_fract: (a: number, b: number) => [number, number]; readonly str_gt: (a: number, b: number, c: number, d: number) => number; readonly str_gte: (a: number, b: number, c: number, d: number) => number; readonly str_is_integer: (a: number, b: number) => number; readonly str_is_negative: (a: number, b: number) => number; readonly str_is_positive: (a: number, b: number) => number; readonly str_is_zero: (a: number, b: number) => number; readonly str_ln: (a: number, b: number) => [number, number]; readonly str_log10: (a: number, b: number) => [number, number]; readonly str_lt: (a: number, b: number, c: number, d: number) => number; readonly str_lte: (a: number, b: number, c: number, d: number) => number; readonly str_max: (a: number, b: number, c: number, d: number) => [number, number]; readonly str_min: (a: number, b: number, c: number, d: number) => [number, number]; readonly str_mod: (a: number, b: number, c: number, d: number) => [number, number]; readonly str_mul: (a: number, b: number, c: number, d: number) => [number, number]; readonly str_neg: (a: number, b: number) => [number, number]; readonly str_normalize: (a: number, b: number) => [number, number]; readonly str_plus: (a: number, b: number, c: number, d: number) => [number, number]; readonly str_pow: (a: number, b: number, c: bigint) => [number, number]; readonly str_powd: (a: number, b: number, c: number, d: number) => [number, number]; readonly str_round: (a: number, b: number) => [number, number]; readonly str_round_dp: (a: number, b: number, c: number) => [number, number]; readonly str_round_dp_bankers: (a: number, b: number, c: number) => [number, number]; readonly str_scale: (a: number, b: number) => number; readonly str_sign: (a: number, b: number) => number; readonly str_sin: (a: number, b: number) => [number, number]; readonly str_sqrt: (a: number, b: number) => [number, number]; readonly str_sub: (a: number, b: number, c: number, d: number) => [number, number]; readonly str_tan: (a: number, b: number) => [number, number]; readonly str_trunc: (a: number, b: number) => [number, number]; readonly __wbindgen_externrefs: WebAssembly.Table; readonly __wbindgen_malloc: (a: number, b: number) => number; readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; readonly __wbindgen_free: (a: number, b: number, c: number) => void; readonly __wbindgen_start: () => void; } export type SyncInitInput = BufferSource | WebAssembly.Module; /** * Instantiates the given `module`, which can either be bytes or * a precompiled `WebAssembly.Module`. * * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated. * * @returns {InitOutput} */ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput; /** * If `module_or_path` is {RequestInfo} or {URL}, makes a request and * for everything else, calls `WebAssembly.instantiate` directly. * * @param {{ module_or_path: InitInput | Promise }} module_or_path - Passing `InitInput` directly is deprecated. * * @returns {Promise} */ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise } | InitInput | Promise): Promise;