import { type Signal } from '@wix/services-definitions/core-services/signals'; export interface SelectedOptionText { name: string; type: 'text'; value: string; } export interface SelectedOptionColor { name: string; type: 'color'; value: { name: string; code: string; }; } export type SelectedOption = SelectedOptionText | SelectedOptionColor; export interface SelectedOptionServiceAPI { selectedOption: Signal; } export declare const SelectedOptionServiceDefinition: string & { __api: SelectedOptionServiceAPI; __config: {}; isServiceDefinition?: boolean; } & SelectedOptionServiceAPI; export interface SelectedOptionServiceConfig { selectedOption: SelectedOption; } export declare const SelectedOptionService: import("@wix/services-definitions").ServiceFactory; /** * Type guard to check if a selected option is a text option * * @param option - The selected option to check * @returns true if the option is a text option * * @example * ```tsx * if (isTextOption(selectedOption)) { * // TypeScript knows this is SelectedOptionText * console.log(selectedOption.value); // string * } * ``` */ export declare function isTextOption(option: SelectedOption): option is SelectedOptionText; /** * Type guard to check if a selected option is a color option * * @param option - The selected option to check * @returns true if the option is a color option * * @example * ```tsx * if (isColorOption(selectedOption)) { * // TypeScript knows this is SelectedOptionColor * console.log(selectedOption.value.name); // string * console.log(selectedOption.value.code); // string * } * ``` */ export declare function isColorOption(option: SelectedOption): option is SelectedOptionColor;