import { type SessionEntry } from "../config/sessions.js"; import type { KlawConfig } from "../config/types.klaw.js"; import type { SubagentRunOutcome } from "./subagent-announce-output.js"; import { type SubagentLifecycleEndedReason } from "./subagent-lifecycle-events.js"; export type SubagentSessionStoreCache = Map>; export type SubagentSessionCompletion = { endedAt: number; outcome: SubagentRunOutcome; reason: SubagentLifecycleEndedReason; }; export declare function loadSubagentSessionEntry(params: { childSessionKey: string; storeCache?: SubagentSessionStoreCache; cfg?: KlawConfig; }): SessionEntry | undefined; export declare function resolveCompletionFromSessionEntry(sessionEntry: SessionEntry | undefined, fallbackEndedAt: number, opts?: { notBeforeMs?: number; }): SubagentSessionCompletion | null; export declare function resolveSubagentSessionCompletion(params: { childSessionKey: string; fallbackEndedAt: number; notBeforeMs?: number; storeCache?: SubagentSessionStoreCache; cfg?: KlawConfig; }): SubagentSessionCompletion | null;