import { CurveType } from './constants'; export declare let HEAP32: Int32Array; export declare let stackSave: () => number; export declare let stackAlloc: (n: number) => number; export declare let stackRestore: (v: number) => void; export declare let copyFromHeap32: (a: Uint32Array, pos: number) => void; export declare let salloc: (a: Uint32Array) => number; export declare let sallocCopy: (a: Uint32Array) => number; export declare let sallocBytes: (buf: Uint8Array) => number; export declare let sallocArray: (arr: Uint32Array[]) => number; export declare let saveArray: (arr: Uint32Array[], pos: number) => void; export declare let callSetter: (func: Function, a: Uint32Array, p1?: any, p2?: any) => void; export declare let callGetter: (func: Function, a: Uint32Array, p1?: any, p2?: any) => any; export declare let callGetter2: (func: Function, x: Uint32Array, y: Uint32Array, p1?: any) => any; export declare let callOp1: (func: Function, y: Uint32Array, x: Uint32Array, p1?: any) => any; export declare let callOp2: (func: Function, z: Uint32Array, x: Uint32Array, y: Uint32Array) => any; export declare let callShare: (func: Function, y: Uint32Array, vec: Uint32Array[], id: Uint32Array) => any; export declare let callRecover: (func: Function, y: Uint32Array, idVec: Uint32Array[], vec: Uint32Array[]) => any; export declare let callSetInput: (func: Function, a: Uint32Array, buf: string | Uint8Array, ioMode?: number) => void; export declare let callGetStr: (func: Function, a: Uint32Array, ioMode?: number, returnAsStr?: boolean) => any; export declare let callDeserialize: (func: Function, a: Uint32Array, buf: Uint8Array) => void; export declare let callSerialize: (func: Function, a: Uint32Array) => Uint8Array; interface MallocDebugState { enabled: boolean; total: number; ptr: Record; his: Array<[number, number]>; } export declare const mallocDebug: MallocDebugState; export declare const getMemory: () => { buffer: ArrayBuffer; }; export declare const ptrToAsciiStr: (pos: number, n: number) => string; export declare const asciiStrToPtr: (pos: number, s: string) => void; export declare const toHex: (a: Uint8Array, start: number, n: number) => string; export declare const toHexStr: (a: Uint8Array) => string; export declare const fromHexStr: (s: string) => Uint8Array; export declare const free: (x: number) => void; export declare const _showDebug: () => void; /** given `CurveType` of last `initializeMcl` call */ export declare let initializedCurveType: CurveType; export declare const initializeMcl: (curveType?: CurveType) => Promise; export {};