/** * Types */ import { Logo } from '../store/types.ts'; import { RemoveFromStorageProps, SaveToStorageProps, UpdateInStorageProps } from '../types.ts'; /** * Add an entry to the site's logo history. * * @param {SaveToStorageProps} saveToStorageProps - The properties to save to storage * @param {SaveToStorageProps.siteId} saveToStorageProps.siteId - The site ID * @param {SaveToStorageProps.url} saveToStorageProps.url - The URL of the logo * @param {SaveToStorageProps.description} saveToStorageProps.description - The description of the logo, based on the prompt used to generate it * @param {SaveToStorageProps.mediaId} saveToStorageProps.mediaId - The media ID of the logo on the backend * @param {SaveToStorageProps.revisedPrompt} saveToStorageProps.revisedPrompt - The revised prompt of the logo * @return {Logo} The logo that was saved */ export declare function stashLogo({ siteId, url, description, mediaId, revisedPrompt, }: SaveToStorageProps): Logo; /** * Update an entry in the site's logo history. * * @param {UpdateInStorageProps} updateInStorageProps - The properties to update in storage * @param {UpdateInStorageProps.siteId} updateInStorageProps.siteId - The site ID * @param {UpdateInStorageProps.url} updateInStorageProps.url - The URL of the logo to update * @param {UpdateInStorageProps.newUrl} updateInStorageProps.newUrl - The new URL of the logo * @param {UpdateInStorageProps.mediaId} updateInStorageProps.mediaId - The new media ID of the logo * @param {UpdateInStorageProps.rating} updateInStorageProps.rating - The new rating of the logo * @return {Logo} The logo that was updated */ export declare function updateLogo({ siteId, url, newUrl, mediaId, rating }: UpdateInStorageProps): Logo; /** * Get the logo history for a site. * * @param {string} siteId - The site ID to get the logo history for * @return {Logo[]} The logo history for the site */ export declare function getSiteLogoHistory(siteId: string): Logo[]; /** * Check if the logo history for a site is empty. * * @param {string } siteId - The site ID to check the logo history for * @return {boolean} Whether the logo history for the site is empty */ export declare function isLogoHistoryEmpty(siteId: string): boolean; /** * Remove an entry from the site's logo history. * * @param {RemoveFromStorageProps} removeFromStorageProps - The properties to remove from storage * @param {RemoveFromStorageProps.siteId} removeFromStorageProps.siteId - The site ID * @param {RemoveFromStorageProps.mediaId} removeFromStorageProps.mediaId - The media ID of the logo to remove * @return {void} */ export declare function removeLogo({ siteId, mediaId }: RemoveFromStorageProps): void; /** * Clear deleted media from the site's logo history, checking if the media still exists on the backend. * * @param {string} siteId - The site ID to clear deleted media for * @return {Promise} */ export declare function clearDeletedMedia(siteId: string): Promise;