import { Backend, InferenceSession, SessionHandler } from 'onnxruntime-common';
declare class OnnxjsBackend implements Backend {
    init(): Promise<void>;
    createSessionHandler(pathOrBuffer: string | Uint8Array, options?: InferenceSession.SessionOptions): Promise<SessionHandler>;
}
export declare const onnxjsBackend: OnnxjsBackend;
export interface WebGLFlags {
    /**
     * set or get the WebGL Context ID (webgl or webgl2)
     */
    contextId?: 'webgl' | 'webgl2';
    /**
     * set or get the maximum batch size for matmul. 0 means to disable batching.
     */
    matmulMaxBatchSize?: number;
    /**
     * set or get the texture cache mode
     */
    textureCacheMode?: 'initializerOnly' | 'full';
    /**
     * set or get the packed texture mode
     */
    pack?: boolean;
}
/**
 * Represent a set of flags for ONNX.js backend.
 */
export declare const flags: WebGLFlags;
export {};
