1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export function get_gray_image(raw: Uint8Array, scale: number): Uint8Array;
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export function get_ascii_by_image(raw: Uint8Array, scale: number, reverse: boolean): string;
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | export function get_ascii_by_image_tai(raw: Uint8Array, scale: number, reverse: boolean, style: string): string;
|
24 |
|
25 |
|
26 | export function run(): void;
|
27 |
|
28 | export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
29 |
|
30 | export interface InitOutput {
|
31 | readonly memory: WebAssembly.Memory;
|
32 | readonly get_gray_image: (a: number, b: number, c: number, d: number) => void;
|
33 | readonly get_ascii_by_image: (a: number, b: number, c: number, d: number, e: number) => void;
|
34 | readonly get_ascii_by_image_tai: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
35 | readonly run: () => void;
|
36 | readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
37 | readonly __wbindgen_malloc: (a: number) => number;
|
38 | readonly __wbindgen_free: (a: number, b: number) => void;
|
39 | readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
|
40 | readonly __wbindgen_start: () => void;
|
41 | }
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 | export function initSync(bytes: BufferSource): InitOutput;
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 | export default function init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|