import type { BytesLike } from './types.js';
import { GatewayProgram } from './vm.js';
type ProgramAction = {
    pos: number;
    op: number;
    name: string;
} & Record<string, any>;
export declare class ProgramReader {
    readonly ops: Uint8Array;
    static actions(program: GatewayProgram): ProgramAction[];
    static fromProgram(program: GatewayProgram): ProgramReader;
    static fromBytes(v: BytesLike): ProgramReader;
    pos: number;
    constructor(ops: Uint8Array);
    get remaining(): number;
    checkRead(n: number): void;
    readByte(): number;
    readBytes(n: number): any;
    readUint(): bigint;
    readSmallStr(): any;
    private parseArgs;
    readAction(): ProgramAction;
}
export {};
//# sourceMappingURL=reader.d.ts.map