import { TabberButtonsWidgetCustomOptions, TabberButtonsWidgetStyleOptions } from '../../../../../types.js'; import { TabberWidgetDto, TabberWidgetDtoStyle } from '../types.js'; /** * Extracts style options from TabberWidgetDtoStyle. * Pure function that transforms tabber widget DTO style to CSDK style options. * Removes fields that belong in customOptions and renames background color fields. * Background colors are applied when provided, regardless of the useSelectedBkg/useUnselectedBkg flags. * * @param tabberStyleDto - The tabber widget style from DTO * @returns The tabber widget style options for CSDK */ export declare function extractTabberButtonsWidgetStyleOptions(tabberStyleDto: TabberWidgetDtoStyle): TabberButtonsWidgetStyleOptions; /** * Extracts custom options from TabberWidgetDtoStyle. * Pure function that extracts tab names and active tab index from DTO style. * * @param tabberDto - The tabber widget props DTO * @returns Object containing tab names and active tab index */ export declare function extractTabberButtonsWidgetCustomOptions(tabberDto: TabberWidgetDto): { tabNames: string[]; activeTab: number; }; /** * Builds the tabber DTO style from CSDK tabber style and custom options. * Inverse of {@link extractTabberButtonsWidgetStyleOptions} and * {@link extractTabberButtonsWidgetCustomOptions}: re-encodes the lowercase enum * values back to uppercase, reconstructs the `useSelectedBkg`/`useUnselectedBkg` * flags from the presence of the corresponding background colors, and * re-materializes `tabs`/`activeTab` from the custom options. * * Note: `displayWidgetIds`/`hideWidgetIds` are not represented in the CSDK * widget model, so the re-materialized tabs carry empty id lists. * * @param styleOptions - The tabber style options from WidgetModel.styleOptions * @param customOptions - The tabber custom options from WidgetModel.customOptions * @returns The tabber widget style for the DTO */ export declare function toTabberWidgetStyle(styleOptions: TabberButtonsWidgetStyleOptions, customOptions: TabberButtonsWidgetCustomOptions): TabberWidgetDtoStyle;