AIdentity

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

rust_wasm.d.ts (3199B)


      1 /* tslint:disable */
      2  
      3 export function chat(dict_data: Uint8Array, input: string): string;
      4 /**
      5  *
      6  * * SVGパス上で指定された点に最も近い点を計算します。
      7  * 
      8  */
      9 export function find_nearest_point_on_path(path_d: string, x: number, y: number, _snapping_distance_viewbox: number): NearestPointResult | undefined;
     10 export function main_js(): void;
     11 export class NearestPointResult {
     12   private constructor();
     13   free(): void;
     14   [Symbol.dispose](): void;
     15   x: number;
     16   y: number;
     17 }
     18 
     19 export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
     20 
     21 export interface InitOutput {
     22   readonly memory: WebAssembly.Memory;
     23   readonly chat: (a: number, b: number, c: number, d: number) => [number, number, number, number];
     24   readonly __wbg_nearestpointresult_free: (a: number, b: number) => void;
     25   readonly __wbg_get_nearestpointresult_x: (a: number) => number;
     26   readonly __wbg_set_nearestpointresult_x: (a: number, b: number) => void;
     27   readonly __wbg_get_nearestpointresult_y: (a: number) => number;
     28   readonly __wbg_set_nearestpointresult_y: (a: number, b: number) => void;
     29   readonly find_nearest_point_on_path: (a: number, b: number, c: number, d: number, e: number) => number;
     30   readonly main_js: () => void;
     31   readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
     32   readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
     33   readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
     34   readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
     35   readonly rust_zstd_wasm_shim_free: (a: number) => void;
     36   readonly rust_zstd_wasm_shim_memcpy: (a: number, b: number, c: number) => number;
     37   readonly rust_zstd_wasm_shim_memmove: (a: number, b: number, c: number) => number;
     38   readonly rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => number;
     39   readonly __wbindgen_exn_store: (a: number) => void;
     40   readonly __externref_table_alloc: () => number;
     41   readonly __wbindgen_export_2: WebAssembly.Table;
     42   readonly __wbindgen_malloc: (a: number, b: number) => number;
     43   readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
     44   readonly __externref_table_dealloc: (a: number) => void;
     45   readonly __wbindgen_free: (a: number, b: number, c: number) => void;
     46   readonly __wbindgen_start: () => void;
     47 }
     48 
     49 export type SyncInitInput = BufferSource | WebAssembly.Module;
     50 /**
     51 * Instantiates the given `module`, which can either be bytes or
     52 * a precompiled `WebAssembly.Module`.
     53 *
     54 * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
     55 *
     56 * @returns {InitOutput}
     57 */
     58 export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
     59 
     60 /**
     61 * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
     62 * for everything else, calls `WebAssembly.instantiate` directly.
     63 *
     64 * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
     65 *
     66 * @returns {Promise<InitOutput>}
     67 */
     68 export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;