Skip to content

Commit 5d47eb9

Browse files
committed
fix: commit WASM pkg for demo CI build
1 parent 7873cdb commit 5d47eb9

5 files changed

Lines changed: 567 additions & 0 deletions

File tree

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
4+
/**
5+
* Convert PDF bytes to a structured document object (returned as JS value).
6+
*
7+
* # Arguments
8+
* * `pdf_bytes` — raw PDF file as `Uint8Array`
9+
* * `format` — output format hint: `"json"` (default) | `"markdown"` | `"html"` | `"text"`
10+
* * `pages` — page range: `"all"` (default) or `"1-5"` or `"1,3,7"`
11+
* * `reading_order` — `"auto"` (default) or `"off"`
12+
* * `table_method` — `"default"` (default) or `"cluster"`
13+
*/
14+
export function convert(pdf_bytes: Uint8Array, format?: string | null, pages?: string | null, reading_order?: string | null, table_method?: string | null): any;
15+
16+
/**
17+
* Convert PDF bytes to a formatted output string.
18+
*
19+
* # Arguments
20+
* * `pdf_bytes` — raw PDF file as `Uint8Array`
21+
* * `format` — `"json"` (default) | `"markdown"` | `"html"` | `"text"`
22+
* * `pages` — page range
23+
* * `reading_order` — `"auto"` | `"off"`
24+
* * `table_method` — `"default"` | `"cluster"`
25+
*/
26+
export function convert_to_string(pdf_bytes: Uint8Array, format?: string | null, pages?: string | null, reading_order?: string | null, table_method?: string | null): string;
27+
28+
/**
29+
* Initialize panic hook for better error messages in browser console.
30+
*/
31+
export function init(): void;
32+
33+
/**
34+
* Return the edgeparse version string.
35+
*/
36+
export function version(): string;
37+
38+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
39+
40+
export interface InitOutput {
41+
readonly memory: WebAssembly.Memory;
42+
readonly convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
43+
readonly convert_to_string: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
44+
readonly version: (a: number) => void;
45+
readonly init: () => void;
46+
readonly __wbindgen_export: (a: number, b: number) => number;
47+
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
48+
readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
49+
readonly __wbindgen_export4: (a: number) => void;
50+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
51+
readonly __wbindgen_start: () => void;
52+
}
53+
54+
export type SyncInitInput = BufferSource | WebAssembly.Module;
55+
56+
/**
57+
* Instantiates the given `module`, which can either be bytes or
58+
* a precompiled `WebAssembly.Module`.
59+
*
60+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
61+
*
62+
* @returns {InitOutput}
63+
*/
64+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
65+
66+
/**
67+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
68+
* for everything else, calls `WebAssembly.instantiate` directly.
69+
*
70+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
71+
*
72+
* @returns {Promise<InitOutput>}
73+
*/
74+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;

0 commit comments

Comments
 (0)