/**
 * @returns {number}
 */
export function cancel_handle(): number;
/**
 * This will set the log level of the overall log subscriber.
 * @param {LogLevel} level
 */
export function set_log_level(level: LogLevel): void;
/**
 * Setups the WASM module
 */
export function start(): void;
export type LogLevel = 0 | 1 | 2 | 3 | 4;
/**
 * @enum {0 | 1 | 2 | 3 | 4}
 */
export const LogLevel: Readonly<{
    TRACE: 0;
    0: "TRACE";
    DEBUG: 1;
    1: "DEBUG";
    INFO: 2;
    2: "INFO";
    WARN: 3;
    3: "WARN";
    ERROR: 4;
    4: "ERROR";
}>;
export type WasmCommandType = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18;
/**
 * @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18}
 */
export const WasmCommandType: Readonly<{
    Input: 0;
    0: "Input";
    Output: 1;
    1: "Output";
    GetState: 2;
    2: "GetState";
    GetStateKeys: 3;
    3: "GetStateKeys";
    SetState: 4;
    4: "SetState";
    ClearState: 5;
    5: "ClearState";
    ClearAllState: 6;
    6: "ClearAllState";
    GetPromise: 7;
    7: "GetPromise";
    PeekPromise: 8;
    8: "PeekPromise";
    CompletePromise: 9;
    9: "CompletePromise";
    Sleep: 10;
    10: "Sleep";
    Call: 11;
    11: "Call";
    OneWayCall: 12;
    12: "OneWayCall";
    SendSignal: 13;
    13: "SendSignal";
    Run: 14;
    14: "Run";
    AttachInvocation: 15;
    15: "AttachInvocation";
    GetInvocationOutput: 16;
    16: "GetInvocationOutput";
    CompleteAwakeable: 17;
    17: "CompleteAwakeable";
    CancelInvocation: 18;
    18: "CancelInvocation";
}>;
export class WasmHeader {
    static __wrap(ptr: any): any;
    static __unwrap(jsValue: any): number;
    /**
     * @param {string} key
     * @param {string} value
     */
    constructor(key: string, value: string);
    __destroy_into_raw(): number;
    __wbg_ptr: number;
    free(): void;
    /**
     * @returns {string}
     */
    get key(): string;
    /**
     * @returns {string}
     */
    get value(): string;
}
export class WasmIdentityVerifier {
    /**
     * @param {string[]} keys
     */
    constructor(keys: string[]);
    __destroy_into_raw(): number;
    __wbg_ptr: number;
    free(): void;
    /**
     * @param {string} path
     * @param {WasmHeader[]} headers
     */
    verify_identity(path: string, headers: WasmHeader[]): void;
}
export class WasmInput {
    static __wrap(ptr: any): any;
    __destroy_into_raw(): number | undefined;
    __wbg_ptr: number | undefined;
    free(): void;
    /**
     * @returns {string}
     */
    get invocation_id(): string;
    /**
     * @returns {string}
     */
    get key(): string;
    /**
     * @returns {WasmHeader[]}
     */
    get headers(): WasmHeader[];
    /**
     * @returns {Uint8Array}
     */
    get input(): Uint8Array;
    /**
     * @returns {bigint}
     */
    get random_seed(): bigint;
}
export class WasmResponseHead {
    static __wrap(ptr: any): any;
    __destroy_into_raw(): number | undefined;
    __wbg_ptr: number | undefined;
    free(): void;
    /**
     * @returns {number}
     */
    get status_code(): number;
    /**
     * @returns {WasmHeader[]}
     */
    get headers(): WasmHeader[];
}
export class WasmVM {
    /**
     * @param {WasmHeader[]} headers
     * @param {LogLevel} log_level
     * @param {number} logger_id
     * @param {boolean} disable_payload_checks
     * @param {boolean} explicit_cancellation
     */
    constructor(headers: WasmHeader[], log_level: LogLevel, logger_id: number, disable_payload_checks: boolean, explicit_cancellation: boolean);
    __destroy_into_raw(): number;
    __wbg_ptr: number;
    free(): void;
    /**
     * @param {string} signal_name
     * @returns {number}
     */
    sys_signal(signal_name: string): number;
    /**
     * @param {Uint32Array} handles
     * @returns {WasmDoProgressResult}
     */
    do_progress(handles: Uint32Array): WasmDoProgressResult;
    /**
     * @returns {any}
     */
    take_output(): any;
    /**
     * @param {number} handle
     * @returns {boolean}
     */
    is_completed(handle: number): boolean;
    /**
     * @param {string} error_message
     * @param {string | null} [stacktrace]
     */
    notify_error(error_message: string, stacktrace?: string | null): void;
    /**
     * @param {Uint8Array} buffer
     */
    notify_input(buffer: Uint8Array): void;
    /**
     * @returns {boolean}
     */
    is_processing(): boolean;
    /**
     * @returns {WasmAwakeable}
     */
    sys_awakeable(): WasmAwakeable;
    /**
     * @param {string} key
     * @returns {number}
     */
    sys_get_state(key: string): number;
    /**
     * @param {string} key
     * @param {Uint8Array} buffer
     */
    sys_set_state(key: string, buffer: Uint8Array): void;
    /**
     * @param {string} key
     */
    sys_clear_state(key: string): void;
    /**
     * @param {string} key
     * @returns {number}
     */
    sys_get_promise(key: string): number;
    /**
     * @param {string} key
     * @returns {number}
     */
    sys_peek_promise(key: string): number;
    /**
     * @returns {WasmResponseHead}
     */
    get_response_head(): WasmResponseHead;
    /**
     * @param {number} handle
     * @returns {WasmAsyncResultValue}
     */
    take_notification(handle: number): WasmAsyncResultValue;
    /**
     * @returns {number}
     */
    last_command_index(): number;
    /**
     * @returns {number}
     */
    sys_get_state_keys(): number;
    /**
     * @returns {boolean}
     */
    is_ready_to_execute(): boolean;
    notify_input_closed(): void;
    sys_clear_all_state(): void;
    /**
     * @param {string} invocation_id
     * @returns {number}
     */
    sys_attach_invocation(invocation_id: string): number;
    /**
     * @param {string} target_invocation_id
     */
    sys_cancel_invocation(target_invocation_id: string): void;
    /**
     * @param {WasmFailure} value
     */
    sys_write_output_failure(value: WasmFailure): void;
    /**
     * @param {Uint8Array} buffer
     */
    sys_write_output_success(buffer: Uint8Array): void;
    /**
     * @param {string} invocation_id
     * @returns {number}
     */
    sys_get_invocation_output(invocation_id: string): number;
    /**
     * @param {string} invocation_id
     * @param {string} signal_name
     * @param {WasmFailure} value
     */
    sys_complete_signal_failure(invocation_id: string, signal_name: string, value: WasmFailure): void;
    /**
     * @param {string} invocation_id
     * @param {string} signal_name
     * @param {Uint8Array} buffer
     */
    sys_complete_signal_success(invocation_id: string, signal_name: string, buffer: Uint8Array): void;
    /**
     * @param {string} key
     * @param {WasmFailure} value
     * @returns {number}
     */
    sys_complete_promise_failure(key: string, value: WasmFailure): number;
    /**
     * @param {string} key
     * @param {Uint8Array} buffer
     * @returns {number}
     */
    sys_complete_promise_success(key: string, buffer: Uint8Array): number;
    /**
     * @param {string} error_message
     * @param {string | null | undefined} stacktrace
     * @param {WasmCommandType} wasm_command_type
     */
    notify_error_for_next_command(error_message: string, stacktrace: string | null | undefined, wasm_command_type: WasmCommandType): void;
    /**
     * @param {number} handle
     * @param {WasmFailure} value
     */
    propose_run_completion_failure(handle: number, value: WasmFailure): void;
    /**
     * @param {number} handle
     * @param {Uint8Array} buffer
     */
    propose_run_completion_success(handle: number, buffer: Uint8Array): void;
    /**
     * @param {string} id
     * @param {WasmFailure} value
     */
    sys_complete_awakeable_failure(id: string, value: WasmFailure): void;
    /**
     * @param {string} id
     * @param {Uint8Array} buffer
     */
    sys_complete_awakeable_success(id: string, buffer: Uint8Array): void;
    /**
     * @param {string} error_message
     * @param {string | null} [stacktrace]
     * @param {bigint | null} [delay_override]
     */
    notify_error_with_delay_override(error_message: string, stacktrace?: string | null, delay_override?: bigint | null): void;
    /**
     * @param {string} error_message
     * @param {string | null | undefined} stacktrace
     * @param {WasmCommandType} wasm_command_type
     * @param {number} command_index
     * @param {string | null} [command_name]
     */
    notify_error_for_specific_command(error_message: string, stacktrace: string | null | undefined, wasm_command_type: WasmCommandType, command_index: number, command_name?: string | null): void;
    /**
     * @param {number} handle
     * @param {string} error_message
     * @param {string | null | undefined} error_stacktrace
     * @param {bigint} attempt_duration
     * @param {WasmExponentialRetryConfig | null} [config]
     */
    propose_run_completion_failure_transient(handle: number, error_message: string, error_stacktrace: string | null | undefined, attempt_duration: bigint, config?: WasmExponentialRetryConfig | null): void;
    /**
     * @param {number} handle
     * @param {string} error_message
     * @param {string | null | undefined} error_stacktrace
     * @param {bigint} attempt_duration
     * @param {bigint | null} [delay_override]
     * @param {number | null} [max_retry_attempts_override]
     * @param {bigint | null} [max_retry_duration_override]
     */
    propose_run_completion_failure_transient_with_delay_override(handle: number, error_message: string, error_stacktrace: string | null | undefined, attempt_duration: bigint, delay_override?: bigint | null, max_retry_attempts_override?: number | null, max_retry_duration_override?: bigint | null): void;
    sys_end(): void;
    /**
     * @param {string} name
     * @returns {number}
     */
    sys_run(name: string): number;
    /**
     * @param {string} service
     * @param {string} handler
     * @param {Uint8Array} buffer
     * @param {string | null | undefined} key
     * @param {WasmHeader[]} headers
     * @param {string | null} [idempotency_key]
     * @param {string | null} [name]
     * @returns {WasmCallHandle}
     */
    sys_call(service: string, handler: string, buffer: Uint8Array, key: string | null | undefined, headers: WasmHeader[], idempotency_key?: string | null, name?: string | null): WasmCallHandle;
    /**
     * @param {string} service
     * @param {string} handler
     * @param {Uint8Array} buffer
     * @param {string | null | undefined} key
     * @param {WasmHeader[]} headers
     * @param {bigint | null} [delay]
     * @param {string | null} [idempotency_key]
     * @param {string | null} [name]
     * @returns {WasmSendHandle}
     */
    sys_send(service: string, handler: string, buffer: Uint8Array, key: string | null | undefined, headers: WasmHeader[], delay?: bigint | null, idempotency_key?: string | null, name?: string | null): WasmSendHandle;
    /**
     * @returns {WasmInput}
     */
    sys_input(): WasmInput;
    /**
     * @param {bigint} millis
     * @param {string | null} [name]
     * @returns {number}
     */
    sys_sleep(millis: bigint, name?: string | null): number;
}
//# sourceMappingURL=sdk_shared_core_wasm_bindings.d.ts.map