import type { ImageAttachment, ImageMediaType } from './relay/types.js'; import type { PersistedImage } from './types.js'; /** * Detect image media type from magic bytes. Returns null if unrecognised. * Magic bytes are authoritative over any declared content-type. */ export declare function detectMediaType(buf: Uint8Array): ImageMediaType | null; /** * Persist image attachments from the relay to disk. * * @param attachments - Base64-encoded image attachments from the wire protocol * @returns Successfully persisted images (failures are logged and skipped) */ export declare function persistImages(attachments: ImageAttachment[]): Promise;