import { type IBaResponse } from '..'; import type { BrandKit, TemplateVersion } from '../../../../../brand-core/src/entity'; /** * Get all business and country info from top-level slug * @param slug * @returns */ declare function getGlobalSlug(slug: string): Promise<{ [key: string]: string; }>; declare function setShortUrl(slug: string, oldSlug: string, businessId: string): Promise>; /** * Get pwa metadata * @param businessId * @returns */ declare function getBusinessMetadata(businessId: string): Promise; /** * Set pwa metadata * @param businessId * @param appName */ declare function setBusinessMetadata(businessId: string, appName: string, country: string): Promise; /** * Get business brandkit * @param businessId * @returns */ declare function getBusinessBrandkit(businessId: string): Promise; /** * Set business brandkit * @param businessId */ declare function setBusinessBrandkit(businessId: string, brandkit: BrandKit): Promise; /** * Get template version history for a specific target (app or kiosk) * @param businessId * @param target - 'app' or 'kiosk' */ declare function getTemplateHistory(businessId: string, target: 'app' | 'kiosk'): Promise<{ currentVersion: number; templateHistory: TemplateVersion[]; currentTemplate: { mainView?: Record; cartView?: Record; } | null; }>; /** * Restore a specific template version * @param businessId * @param target - 'app' or 'kiosk' * @param version - version number to restore */ declare function restoreTemplateVersion(businessId: string, target: 'app' | 'kiosk', version: number): Promise<{ message: string; data: { restoredTemplate: { mainView?: Record; cartView?: Record; }; newVersion: number; }; }>; /** * Clear template version history for a specific target (app or kiosk) * @param businessId * @param target - 'app' or 'kiosk' */ declare function clearTemplateHistory(businessId: string, target: 'app' | 'kiosk'): Promise<{ message: string; }>; declare function updateBusinessProfile(businessId: string, payload: IBusinessProfilePayload): Promise; declare function getBusinessPremiumStatus(businessId: string): Promise; export declare const BusinessApi: { getGlobalSlug: typeof getGlobalSlug; setShortUrl: typeof setShortUrl; getBusinessMetadata: typeof getBusinessMetadata; setBusinessMetadata: typeof setBusinessMetadata; getBusinessBrandkit: typeof getBusinessBrandkit; setBusinessBrandkit: typeof setBusinessBrandkit; getTemplateHistory: typeof getTemplateHistory; restoreTemplateVersion: typeof restoreTemplateVersion; clearTemplateHistory: typeof clearTemplateHistory; updateBusinessProfile: typeof updateBusinessProfile; getBusinessPremiumStatus: typeof getBusinessPremiumStatus; }; interface IBusinessProfilePayload { name: string; thumbnail: string; url: string; coverPhoto: string | null; } export {};