import { BoundaryResult } from './Result/index.cjs'; export type BoundaryCoreFunction = (...args: string[]) => Promise; export type BoundarySetupInfo = { stateVariables: Record; /** * Functions defined or registered in the core, * that can be called by host wrappers. * These functions are never-fail - they always return a successful promise. */ functions: Record; mock: Record; }; /** * Interface called by ContractCase to invoke user's test code. * * @public */ export interface ITriggerFunction { /** * Trigger the user's test code and test the response from it. * * @param setup - The information about the setup for this test * * @returns BoundarySuccess when successful; BoundaryFailure with * kind=BoundaryFailureKindConstants.CASE_TRIGGER_ERROR if the trigger fails; * BoundaryFailure with * kind=BoundaryFailureKindConstants.CASE_VERIFY_RETURN_ERROR if the * verification function fails. */ trigger(setup: BoundarySetupInfo): Promise; } //# sourceMappingURL=ITriggerFunction.d.ts.map