import { Abi, ClassNode } from './abi/types.js'; import { Lock, LockInterface, Pointer, Serializable } from './internal.js'; /** * Raw Output interface */ export interface OutputInterface { id: string; origin: string; location: string; class: string; lock: LockInterface; state: string; } /** * Transaction Execution Output * * When a transaction is executed it creates one or more outputs. An output * has the following fields: * * - `origin`: a 36-byte pointer to the transaction the instance was first instantiated * - `location`: a 36-byte pointer to the transaction of the current state of the instance * - `class`: a 36-byte pointer to the package the class is found in * - `lock`: the Lock type and data * - `state`: BCS encoded output state * * The Output class is a generic wrapper for any output, and provides a way to * access the parsed state as a JavaScript object. */ export declare class Output { #private; origin: Pointer; location: Pointer; classPtr: Pointer; lock: Lock; stateBuf: Uint8Array; constructor(origin: Pointer, location: Pointer, classPtr: Pointer, lock: Lock, stateBuf: Uint8Array, abi?: Abi); static fromBytes(bytes: Uint8Array, abi?: Abi): Output; static fromHex(hex: string, abi?: Abi): Output; static fromJson(data: OutputInterface, abi?: Abi): Output; set abi(abi: Abi | void); get abi(): Abi | void; get id(): string; get hash(): Uint8Array; get className(): string | void; get classNode(): ClassNode | void; get props(): { [key: string]: any; } | void; toBytes(): Uint8Array; toHex(): string; toJson(): OutputInterface; } /** * Output Serializer object - implements the Serializable interface. */ export declare const OutputSerializer: Serializable; //# sourceMappingURL=output.d.ts.map