import { Backend, InferenceSession, SessionHandler } from 'onnxruntime-common';
declare class OnnxruntimeWebAssemblyBackend implements Backend {
    init(): Promise<void>;
    createSessionHandler(path: string, options?: InferenceSession.SessionOptions): Promise<SessionHandler>;
    createSessionHandler(buffer: Uint8Array, options?: InferenceSession.SessionOptions): Promise<SessionHandler>;
}
export declare const wasmBackend: OnnxruntimeWebAssemblyBackend;
export interface WebAssemblyFlags {
    /**
     * set or get number of worker(s)
     *
     * This setting is available only when WebAssembly multithread feature is available in current context.
     */
    worker?: number;
    /**
     * set or get a number specifying the timeout for initialization of WebAssembly backend, in milliseconds.
     */
    initTimeout?: number;
}
/**
 * Represent a set of flags for WebAssembly backend.
 */
export declare const flags: WebAssemblyFlags;
export {};
