import type { ENUM_EVENT, EVENT_FIELD, STRUCT_EVENT } from '@starknet-io/types-js'; export type Abi = ReadonlyArray; export type AbiEntry = { name: string; type: 'felt' | 'felt*' | string; }; export type EventEntry = { name: string; type: 'felt' | 'felt*' | string; kind: 'key' | 'data'; }; type FunctionAbiType = 'function' | 'constructor' | 'l1_handler'; export type FunctionAbi = { inputs: AbiEntry[]; name: string; outputs: AbiEntry[]; stateMutability?: 'view'; state_mutability?: string; type: FunctionAbiType; }; export type AbiStructs = { [name: string]: AbiStruct; }; export type AbiStruct = { members: (AbiEntry & { offset: number; })[]; name: string; size: number; type: 'struct'; }; export type InterfaceAbi = { items: FunctionAbi[]; name: string; type: 'interface'; }; export type AbiEnums = { [name: string]: AbiEnum; }; export type AbiEnum = { variants: (AbiEntry & { offset: number; })[]; name: string; size: number; type: 'enum'; }; export type AbiEvents = { [hash: string]: AbiEvent; }; export type AbiEvent = CairoEvent | LegacyEvent; export type CairoEvent = CairoEventDefinition | AbiEvents; export type CairoEventDefinition = STRUCT_EVENT & { name: string; type: 'event'; }; export type CairoEventVariant = ENUM_EVENT & { name: string; type: string; }; export type LegacyEvent = { name: string; type: 'event'; data: EVENT_FIELD[]; keys: EVENT_FIELD[]; }; export {}; //# sourceMappingURL=abi.d.ts.map