/** Publishes message bodies and attachments through atomic content-segment storage, rejecting oversized writes when the adapter lacks that capability. */ import type { Memory } from "../types/memory.js"; import type { Content, UUID } from "../types/primitives.js"; import type { IAgentRuntime } from "../types/runtime.js"; /** Bind a host-confirmed durable message to its request-scoped routing representation. Never serialized or accepted from message metadata. */ export declare function bindIncomingMessagePersistence(message: Memory, persisted: Memory): void; /** Carry a trusted host binding through an explicit prompt-only augmentation. */ export declare function inheritIncomingMessagePersistence(source: Memory, augmented: Memory): void; /** Returns a defensive original only for a message explicitly bound by its host. */ export declare function incomingMessagePersistenceSnapshot(message: Memory): Memory | undefined; export declare function persistMessageMemory(runtime: IAgentRuntime, memory: Memory): Promise; /** Reuses only an exact, complete host-prepersisted ingress message; ordinary publication remains strict. */ export declare function persistIncomingMessageMemory(runtime: IAgentRuntime, memory: Memory): Promise; export declare function replaceStoredMessageContent(runtime: IAgentRuntime, messageId: UUID, content: Content): Promise;