import * as viem from 'viem'; import { z } from 'zod'; import { invokeSchema } from '../schemas'; import { ChainBuilderContext, PackageState, TransactionMap } from '../types'; /** * Available properties for invoke operation * @public * @group Invoke */ export type Config = z.infer; export type EncodedTxnEvents = { [name: string]: { args: any[]; }[]; }; export interface InvokeOutputs { hashes: string[]; events?: EncodedTxnEvents[]; } export declare function formatAbiFunction(v: viem.AbiFunction): string; declare const invokeSpec: { label: string; validate: z.ZodObject, z.ZodArray, "atleastone">]>; func: z.ZodString; }, { description: z.ZodOptional; abi: z.ZodOptional>; args: z.ZodOptional, "many">>; from: z.ZodOptional>; fromCall: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { func: string; args?: any[] | undefined; }, { func: string; args?: any[] | undefined; }>>; value: z.ZodOptional>; overrides: z.ZodOptional; }, "strip", z.ZodTypeAny, { gasLimit: string; }, { gasLimit: string; }>>; var: z.ZodOptional; allowEmptyEvents: z.ZodOptional; }, "strict", z.ZodTypeAny, { event: string; arg: number; expectCount?: number | undefined; allowEmptyEvents?: boolean | undefined; }, { event: string; arg: number; expectCount?: number | undefined; allowEmptyEvents?: boolean | undefined; }>>>; extra: z.ZodOptional; allowEmptyEvents: z.ZodOptional; }, "strict", z.ZodTypeAny, { event: string; arg: number; expectCount?: number | undefined; allowEmptyEvents?: boolean | undefined; }, { event: string; arg: number; expectCount?: number | undefined; allowEmptyEvents?: boolean | undefined; }>>>; factory: z.ZodOptional; artifact: z.ZodOptional>; abiOf: z.ZodOptional, "many">>; abi: z.ZodOptional>; constructorArgs: z.ZodOptional, "many">>; allowEmptyEvents: z.ZodOptional; highlight: z.ZodOptional; }, "strip", z.ZodTypeAny, { event: string; arg: number; abi?: string | undefined; artifact?: string | undefined; highlight?: boolean | undefined; abiOf?: string[] | undefined; expectCount?: number | undefined; allowEmptyEvents?: boolean | undefined; constructorArgs?: any[] | undefined; }, { event: string; arg: number; abi?: string | undefined; artifact?: string | undefined; highlight?: boolean | undefined; abiOf?: string[] | undefined; expectCount?: number | undefined; allowEmptyEvents?: boolean | undefined; constructorArgs?: any[] | undefined; }>>>>; chains: z.ZodOptional>>; depends: z.ZodOptional, "many">>; }>, "strict", z.ZodTypeAny, { target: string | [string, ...string[]]; func: string; from?: string | undefined; value?: string | undefined; factory?: Record | undefined; abi?: string | undefined; args?: any[] | undefined; description?: string | undefined; overrides?: { gasLimit: string; } | undefined; chains?: number[] | undefined; depends?: string[] | undefined; fromCall?: { func: string; args?: any[] | undefined; } | undefined; var?: Record | undefined; extra?: Record | undefined; }, { target: string | [string, ...string[]]; func: string; from?: string | undefined; value?: string | undefined; factory?: Record | undefined; abi?: string | undefined; args?: any[] | undefined; description?: string | undefined; overrides?: { gasLimit: string; } | undefined; chains?: number[] | undefined; depends?: string[] | undefined; fromCall?: { func: string; args?: any[] | undefined; } | undefined; var?: Record | undefined; extra?: Record | undefined; }>; getState(_runtime: import("..").ChainBuilderRuntime, ctx: ChainBuilderContext, config: { target: string | [string, ...string[]]; func: string; from?: string | undefined; value?: string | undefined; factory?: Record | undefined; abi?: string | undefined; args?: any[] | undefined; description?: string | undefined; overrides?: { gasLimit: string; } | undefined; chains?: number[] | undefined; depends?: string[] | undefined; fromCall?: { func: string; args?: any[] | undefined; } | undefined; var?: Record | undefined; extra?: Record | undefined; }, packageState: PackageState): Promise<((string | Record | (`0x${string}` | undefined)[] | null | undefined)[] | { to: (`0x${string}` | undefined)[]; func: string; args: string[] | undefined; value: string; factory: Record | undefined; var: Record | undefined; extra?: undefined; } | { to: (`0x${string}` | undefined)[]; func: string; args: string[] | undefined; value: string; factory: Record | undefined; extra: Record | undefined; var?: undefined; } | { to: (`0x${string}` | undefined)[]; func: string; args: string[] | undefined; value: string; factory?: undefined; var?: undefined; extra?: undefined; })[]>; configInject(ctx: ChainBuilderContext, config: { target: string | [string, ...string[]]; func: string; from?: string | undefined; value?: string | undefined; factory?: Record | undefined; abi?: string | undefined; args?: any[] | undefined; description?: string | undefined; overrides?: { gasLimit: string; } | undefined; chains?: number[] | undefined; depends?: string[] | undefined; fromCall?: { func: string; args?: any[] | undefined; } | undefined; var?: Record | undefined; extra?: Record | undefined; }): { target: string | [string, ...string[]]; func: string; from?: string | undefined; value?: string | undefined; factory?: Record | undefined; abi?: string | undefined; args?: any[] | undefined; description?: string | undefined; overrides?: { gasLimit: string; } | undefined; chains?: number[] | undefined; depends?: string[] | undefined; fromCall?: { func: string; args?: any[] | undefined; } | undefined; var?: Record | undefined; extra?: Record | undefined; }; getInputs(config: { target: string | [string, ...string[]]; func: string; from?: string | undefined; value?: string | undefined; factory?: Record | undefined; abi?: string | undefined; args?: any[] | undefined; description?: string | undefined; overrides?: { gasLimit: string; } | undefined; chains?: number[] | undefined; depends?: string[] | undefined; fromCall?: { func: string; args?: any[] | undefined; } | undefined; var?: Record | undefined; extra?: Record | undefined; }, engine: import("../access-recorder").AccessRecorderEngine): import("../access-recorder").AccessComputationResult; getOutputs(config: { target: string | [string, ...string[]]; func: string; from?: string | undefined; value?: string | undefined; factory?: Record | undefined; abi?: string | undefined; args?: any[] | undefined; description?: string | undefined; overrides?: { gasLimit: string; } | undefined; chains?: number[] | undefined; depends?: string[] | undefined; fromCall?: { func: string; args?: any[] | undefined; } | undefined; var?: Record | undefined; extra?: Record | undefined; }, packageState: PackageState): string[]; exec(runtime: import("..").ChainBuilderRuntime, ctx: ChainBuilderContext, config: { target: string | [string, ...string[]]; func: string; from?: string | undefined; value?: string | undefined; factory?: Record | undefined; abi?: string | undefined; args?: any[] | undefined; description?: string | undefined; overrides?: { gasLimit: string; } | undefined; chains?: number[] | undefined; depends?: string[] | undefined; fromCall?: { func: string; args?: any[] | undefined; } | undefined; var?: Record | undefined; extra?: Record | undefined; }, packageState: PackageState): Promise<{ contracts: import("../types").ContractMap; txns: TransactionMap; settings: { [label: string]: string; }; }>; importExisting(runtime: import("..").ChainBuilderRuntime, ctx: ChainBuilderContext, config: { target: string | [string, ...string[]]; func: string; from?: string | undefined; value?: string | undefined; factory?: Record | undefined; abi?: string | undefined; args?: any[] | undefined; description?: string | undefined; overrides?: { gasLimit: string; } | undefined; chains?: number[] | undefined; depends?: string[] | undefined; fromCall?: { func: string; args?: any[] | undefined; } | undefined; var?: Record | undefined; extra?: Record | undefined; }, packageState: PackageState, existingKeys: string[]): Promise<{ contracts: import("../types").ContractMap; txns: TransactionMap; settings: { [label: string]: string; }; }>; }; export default invokeSpec; //# sourceMappingURL=invoke.d.ts.map