import { mvc } from './utils'; export declare const STATE_LEN_2BYTES = 2; export declare const STATE_LEN_4BYTES = 4; export declare function serializeInt(n: number | bigint | string): string; export declare type State = Record; export declare type StateArray = Array; export declare function serialize(x: boolean | number | bigint | string): string; export declare function serializeState(state: State | StateArray, stateBytes?: number, schema?: State | StateArray): string; declare class OpState { op: any; constructor(op: any); toNumber(): number | string | bigint; toBigInt(): bigint; toBoolean(): boolean; toHex(): string; toString(arg?: string): any; } export declare type OpStateArray = Array; export declare function deserializeState(s: string | mvc.Script, schema?: State | StateArray): OpStateArray | State | StateArray; export {};