import type { StoredImage, ImageUploadResult } from "shared/types/index.js";
export type { StoredImage, ImageUploadResult };
export declare class ImageStorageService {
    /**
     * Store an uploaded image file
     */
    static storeImage(buffer: Buffer, originalName: string, mimeType: string): Promise<ImageUploadResult>;
    /**
     * Retrieve an image by ID
     */
    static getImage(imageId: string): {
        buffer: Buffer;
        image: StoredImage;
    } | null;
    /**
     * Delete an image by ID
     */
    static deleteImage(imageId: string): boolean;
    /**
     * Load image buffers for a list of image IDs.
     * Returns an array of { buffer, mimeType } for successfully loaded images.
     * Logs errors for individual failures without throwing.
     */
    static loadImageBuffers(imageIds: string[]): {
        buffer: Buffer;
        mimeType: string;
    }[];
    /**
     * Get file extension from MIME type
     */
    private static getExtensionFromMimeType;
    /**
     * Get MIME type from file extension
     */
    private static getMimeTypeFromExtension;
}
/**
 * Store an image from base64 data (e.g. extracted from session log).
 * Uses SHA256 dedup: if an image with the same hash already exists on disk,
 * returns the existing ID without writing a new file.
 */
export declare function storeBase64Image(base64Data: string, mimeType: string): string | null;
/** Convenience re-export of ImageStorageService.loadImageBuffers for direct import. */
export declare const loadImageBuffers: typeof ImageStorageService.loadImageBuffers;
//# sourceMappingURL=image-storage.d.ts.map