import { type Instruction } from "../insn"; import type { Pool } from "../pool"; import { AttributeType } from "../spec"; import { type Attributable, type Attribute } from "./"; export interface ExceptionTableEntry { startPC: number; endPC: number; handlerPC: number; catchType: number; } export interface CodeAttribute extends Attribute, Attributable { type: AttributeType.CODE; maxStack: number; maxLocals: number; insns: Instruction[]; exceptionTable: ExceptionTableEntry[]; } export declare const readCode: (attr: Attribute, pool: Pool, flags?: number) => CodeAttribute; export declare const writeCode: (attr: CodeAttribute, initialSize?: number) => Uint8Array;