|
1 | 1 | /* tslint:disable */ |
2 | 2 | /* eslint-disable */ |
| 3 | +/** |
| 4 | + * Initializes an SDK client with a given configuration. |
| 5 | + */ |
| 6 | +export function init_client(config: string): Promise<string>; |
3 | 7 | /** |
4 | 8 | * Handles all asynchronous invocations to the SDK core received from the SDK. |
5 | 9 | */ |
6 | 10 | export function invoke(parameters: string): Promise<string>; |
7 | 11 | /** |
8 | | - * Initializes an SDK client with a given configuration. |
| 12 | + * Handles all synchronous invocations to the SDK core received from the SDK. |
9 | 13 | */ |
10 | | -export function init_client(config: string): Promise<string>; |
| 14 | +export function invoke_sync(parameters: string): string; |
11 | 15 | /** |
12 | 16 | * Drops a client, releasing the memory allocated for it. |
13 | 17 | */ |
14 | 18 | export function release_client(client_id: string): void; |
15 | 19 | /** |
16 | | - * Handles all synchronous invocations to the SDK core received from the SDK. |
| 20 | + * The `ReadableStreamType` enum. |
| 21 | + * |
| 22 | + * *This API requires the following crate features to be activated: `ReadableStreamType`* |
17 | 23 | */ |
18 | | -export function invoke_sync(parameters: string): string; |
| 24 | +type ReadableStreamType = "bytes"; |
| 25 | +export class IntoUnderlyingByteSource { |
| 26 | + private constructor(); |
| 27 | + free(): void; |
| 28 | + start(controller: ReadableByteStreamController): void; |
| 29 | + pull(controller: ReadableByteStreamController): Promise<any>; |
| 30 | + cancel(): void; |
| 31 | + readonly type: ReadableStreamType; |
| 32 | + readonly autoAllocateChunkSize: number; |
| 33 | +} |
| 34 | +export class IntoUnderlyingSink { |
| 35 | + private constructor(); |
| 36 | + free(): void; |
| 37 | + write(chunk: any): Promise<any>; |
| 38 | + close(): Promise<any>; |
| 39 | + abort(reason: any): Promise<any>; |
| 40 | +} |
| 41 | +export class IntoUnderlyingSource { |
| 42 | + private constructor(); |
| 43 | + free(): void; |
| 44 | + pull(controller: ReadableStreamDefaultController): Promise<any>; |
| 45 | + cancel(): void; |
| 46 | +} |
0 commit comments