import type { ImageContent } from "@caupulican/pi-ai"; export interface StoredSessionImage { readonly sequence: number; readonly path: string; readonly mimeType: string; readonly bytes: Uint8Array; } export interface SessionImageStoreOptions { agentDir: string; cwd: string; sessionId: string; directory?: string; now?: () => number; } export declare function resolveSessionImageDirectory(options: SessionImageStoreOptions): string; export declare class SessionImageStore { readonly directory: string; private readonly sessionKey; private readonly now; constructor(options: SessionImageStoreOptions); /** Validate and durably retain provider-neutral image content, reusing its claimed sequence only * when that sequence already contains the exact same bytes and normalized MIME type. */ retainContent(content: ImageContent, preferredSequence?: number): StoredSessionImage; write(bytes: Uint8Array, mimeType: string): StoredSessionImage; read(sequence: number): StoredSessionImage | undefined; readLatest(): StoredSessionImage | undefined; resolveReferences(text: string): ImageContent[]; private referencesLatestImage; private readEntry; private scan; private prune; } //# sourceMappingURL=session-image-store.d.ts.map