import type { SociablyNode, SociablyThread } from '@sociably/core'; import { ServiceScope } from '@sociably/core/service'; import type { CallStatus } from './types.js'; type FinishedExecuteResult = { finished: true; returnedValue: Return; yieldedValue: undefined | Yield; callStack: null; contents: SociablyNode[]; }; type UnfinishedExecuteResult = { finished: false; returnedValue: undefined; yieldedValue: undefined | Yield; callStack: CallStatus[]; contents: SociablyNode[]; }; type ExecuteResult = FinishedExecuteResult | UnfinishedExecuteResult; declare const execute: (scope: ServiceScope, thread: SociablyThread, beginningStack: CallStatus[], isPrompting: boolean, input?: Input | undefined) => Promise>; export default execute;