import { default as PboDrawer } from '../../components/drawer/drawer.component'; import { default as PboGiftOptions } from '../../components/gift-options/gift-options.component'; /** * @summary Default implementation of PboIntegration * @description * This class provides a default implementation of the PboIntegration interface. * It can be used as a base implementation or extended for custom needs. * Sate management, event handling, and API interactions are handled here. */ export declare class PboBridge { private _drawerEl; private _giftOptionsEl; private _pageManagerEl; get giftOptions(): PboGiftOptions | null; private readonly _isLoading; /** * @description The selection group by type. * - If set to `category`, the cards will be grouped by category. `getCategories()` will be used to fetch the categories. * - If set to `none`, the cards will not be grouped. `getCards()` will be used to fetch the cards. * @type {"category" | "none"} * @default "category" * @readonly * @private * @memberof PboBridge */ private _selectionGroupBy; private _getCards; private _getCategories; private _cards; private _categories; private setDrawer; getDrawer(): PboDrawer | null; private setGiftOptions; get isLoading(): boolean; get isError(): boolean; get errorMessage(): string; set errorMessage(errorMessage: string); set isLoading(isLoading: boolean); set isError(isError: boolean); private initializeData; private initializeDataByCategory; private initializeDataByType; /** * @summary Customize the gift options style * @description * This function allows you to customize the gift options style. * @param giftOptions - The gift options element or an array of gift options elements * @param styleOptions - The style options for the gift options * @param styleOptions.container - The style options for the container of the gift options * @param styleOptions.container.padding - The padding of the container of the gift options * @param styleOptions.container.gap - The gap of the container of the gift options * @param styleOptions.container.margin - The margin of the container of the gift options * @param styleOptions.label - The style options for the label of the gift options * @param styleOptions.label.gap - The gap of the label of the gift options * @param styleOptions.label.fontSize - The font size of the label of the gift options * @param styleOptions.description - The style options for the description of the gift options * @param styleOptions.description.fontSize - The font size of the description of the gift options */ static customGiftOptionsStyle(giftOptions: PboGiftOptions | PboGiftOptions[], styleOptions: CustomGiftOptionsStyleOptions): void; constructor({ getCards, getCategories, drawer, pageManager, giftOptions, selectionGroupBy, submitTypeForm, submitHandwrittenForm, getProcessedImg, }: PboBridgeConstructorProps); /** * @description Initialize the element * @param element - The element to initialize * @param name - The name of the element * @returns The initialized element */ private _initializeElement; private _setupEventListeners; }