import type { Op } from "./interface"; export declare class OpIterator { /** Ops 组 */ protected ops: Op[]; /** Op 索引 */ protected index: number; /** Op 偏移 */ protected offset: number; /** * 构造函数 * @param ops */ constructor(ops: Op[]); /** * 判断是否存在 Next Op */ hasNext(): boolean; /** * 获取 Next Op 的部分/全部内容 * @param length */ next(length?: number): Op; /** * 获取当前正在迭代的 Op */ peek(): Op; /** * 获取当前迭代 Op 的剩余长度 */ peekLength(): number; /** * 获取当前迭代 Op 的类型 */ peekType(): string; /** * 获取剩余的所有 Ops */ rest(): Op[]; } export declare const iterator: (ops: Op[]) => OpIterator;