import type { ContentBlockParam } from '@anthropic-ai/sdk/resources'; import { type ImageBlockAttachment } from './image-blocks.js'; export type InboundMediaType = ImageBlockAttachment['mediaType']; export interface InboundAttachmentRecord { readonly path: string; readonly mediaType: InboundMediaType; readonly sizeBytes: number; readonly digest: string; } export interface InboundAttachmentRegistration extends InboundAttachmentRecord { readonly id: string; } export interface InboundAttachmentReader { get(sessionId: string, id: string): InboundAttachmentRecord | undefined; listIds(sessionId: string): string[]; } type HashBytes = (bytes: Buffer) => string; export declare function formatInboundImageMarker(id: string, mediaType: InboundMediaType, sizeBytes: number): string; export declare function registerInboundImageBlocks(blocks: ContentBlockParam[], sessionId: string, attachments: readonly ImageBlockAttachment[], registry?: InboundAttachmentRegistry): Promise; export declare class InboundAttachmentRegistry implements InboundAttachmentReader { private readonly entries; private readonly hashBytes; constructor(entries?: Map>, hashBytes?: HashBytes); get(sessionId: string, id: string): InboundAttachmentRecord | undefined; listIds(sessionId: string): string[]; clear(sessionId: string): void; put(sessionId: string, bytes: Buffer, mediaType: InboundMediaType): Promise; } export declare const inboundAttachmentRegistry: InboundAttachmentRegistry; export {};