declare class DivaMediaServiceHandler {
    private organizationId;
    private mediaServiceUrl;
    private jwt?;
    private readonly POST_saveTmp2PermanentPostfix;
    private readonly GET_MediaItemrefs;
    private readonly POST_mediaItem;
    constructor();
    setOrganizationId(organizationId: string): void;
    setMediaServiceUrl(mediaServiceUrl: string): void;
    setJwt(jwt?: string): void;
    private base64ToBlob;
    savePlanning2DPermanent(hash: string, catalogCodex: string, catalogGUID: string, planning2DAsJPG: string): Promise<any>;
    /**
     * Save AI-generated image to media service
     * @param hash Unique identifier for the image
     * @param imageDataOrUrl Either a base64 encoded image data string (with or without data URL prefix) or an existing image URL
     * @param catalogCodex Catalog codex for reference
     * @param catalogGUID Catalog GUID for reference
     * @param organizationId Optional organization ID (defaults to instance organizationId)
     * @returns Promise<string> URL of the saved image or empty string on error. If imageDataOrUrl is already a URL, returns it directly.
     */
    saveAiImagePermanent(hash: string, imageDataOrUrl: string, catalogCodex: string, catalogGUID: string, organizationId?: string): Promise<string>;
}
declare const mediaServiceHandler: DivaMediaServiceHandler;
export default mediaServiceHandler;
//# sourceMappingURL=DivaMediaServiceHandler.d.ts.map