import type { SubagentAuthorizationEventHookPayload, SubagentInputRequestHookPayload } from "#channel/types.js"; import type { WorkflowToolRunRef } from "#execution/tools/workflow/messages.js"; import type { WorkflowToolRunInbox } from "#execution/tools/workflow/owner.js"; import type { RemoteAgentBinding } from "#eve-channel/support.js"; /** A child's question or sign-in, which only a person at the root can answer. */ export type AgentSessionRequest = SubagentAuthorizationEventHookPayload | SubagentInputRequestHookPayload; /** * Sends a child's question or sign-in to the session that owns the run, which * proxies it up the owner chain to the root. Answers route back down to the * child by request id. */ export declare function forwardAgentSessionRequest(input: { readonly from: WorkflowToolRunRef; readonly owner: WorkflowToolRunInbox; readonly replyTo: string; readonly request: AgentSessionRequest; readonly remote?: RemoteAgentBinding & { readonly sessionId: string; }; }): Promise;