import type { AgentSessionInternalSurface as AgentSession } from "./agent-session-methods.ts"; import { AgentTaskHost } from "./tasks/agent-adapter.js"; import type { SupervisedCommandOwner } from "./tools/bash-pty-native.js"; /** An admitted in-process subagent child; top-level sessions may carry a policy without `depth`. */ export declare function isSubagentChildSession(session: Pick): boolean; export declare function replaceSessionTaskOwner(session: AgentSession): void; export declare function getAgentTaskHost(this: AgentSession): AgentTaskHost; /** * Shell task owner for this session. A subagent child runs shells in its parent's owner, * so they appear in the parent's `/tasks` and outlive the child. */ export declare function _getCommandTaskOwner(this: AgentSession): SupervisedCommandOwner | undefined; export declare function closeSessionTasks(this: AgentSession): Promise; /** Workflow controller only: main-chat message pause does not stop owned tasks. */ export declare function pauseTasks(this: AgentSession): Promise; export declare function resumeTasks(this: AgentSession): void; export declare const agentSessionTaskMethods: { getAgentTaskHost: typeof getAgentTaskHost; _getCommandTaskOwner: typeof _getCommandTaskOwner; closeSessionTasks: typeof closeSessionTasks; pauseTasks: typeof pauseTasks; resumeTasks: typeof resumeTasks; }; //# sourceMappingURL=agent-session-tasks.d.ts.map