import type { MastraDBMessage } from '../message-list/index.js';
import { MemoryMessageRefs } from '../message-list/memory-message-refs.js';
export declare function getRunMessageRefs(runId: string | undefined): MemoryMessageRefs;
/** The run's refs if this process holds them, without creating an entry. */
export declare function peekRunMessageRefs(runId: string | undefined): MemoryMessageRefs | undefined;
export declare function releaseRunMessageRefs(runId: string | undefined): void;
/**
 * A `SaveQueueManager` `onSaved` callback that records the rows a run saved,
 * so its persisted transcript references them instead of repeating them. Only
 * runs that store refs hold an entry (the transcript store creates it), so saves
 * for other runs, or landing after the run released its entry, are not kept.
 */
export declare function recordRunSavedMessages(runId: string): (rows: MastraDBMessage[]) => void;
//# sourceMappingURL=run-message-refs.d.ts.map