import type { AgentMessage } from "@earendil-works/pi-agent-core";
import type { AgentSession } from "./agent-session.ts";
import type { CustomMessage } from "./messages.ts";
import type { HistoryReducer } from "./session-history-reduce.ts";
import type { SessionLifecycleController } from "./session-lifecycle.ts";
import type { DeliveryTicketId } from "./session-lifecycle-types.ts";
/** Keep delivery identities, not materialized conversation history, between engine turns. */
export declare const lifecycleDeliveryEntries: HistoryReducer<Map<string, string>>;
export declare function messageTicket(message: Pick<CustomMessage, "details">): DeliveryTicketId | undefined;
/** Synchronous at message_start: transcript first, then the consuming run's custody. */
export declare function consumeLifecycleDelivery(session: AgentSession, controller: SessionLifecycleController, message: AgentMessage): string | undefined;
/**
 * #3860 currently returns void from note(). Capture its appended notice by
 * ticket identity instead of introducing another held-message store.
 */
export declare function heldLifecycleNotice(session: AgentSession, ticketId: DeliveryTicketId, customType: string): string | undefined;
//# sourceMappingURL=lifecycle-delivery.d.ts.map