import React from 'react';
import { type SelectedOption } from '../services/selected-option-service.js';
import { AsChildChildren } from '@wix/headless-utils/react';
export interface SelectedOptionRootProps {
children: React.ReactNode;
option: SelectedOption;
}
/**
* Root component for a selected option that provides the SelectedOption service context to its children
*
* @example
* ```tsx
*
*
*
*
* ```
*/
export declare const Root: {
(props: SelectedOptionRootProps): React.ReactNode;
displayName: string;
};
/**
* Props for SelectedOption Text component
*/
export interface SelectedOptionTextProps {
/** Whether to render as a child component */
asChild?: boolean;
/** Custom render function when using asChild */
children?: AsChildChildren<{
name: string;
value: string;
}>;
/** CSS classes to apply to the default element */
className?: string;
}
/**
* Displays text-based selected option.
*
* @component
* @example
* ```tsx
* // Default usage
*
*
* // Custom rendering with forwardRef
*
* {React.forwardRef(({name, value, ...props}, ref) => (
*
* {name}: {value}
*
* ))}
*
* ```
*/
export declare const Text: React.ForwardRefExoticComponent>;
/**
* Props for SelectedOption Color component
*/
export interface SelectedOptionColorProps {
/** Whether to render as a child component */
asChild?: boolean;
/** Custom render function when using asChild */
children?: AsChildChildren<{
name: string;
colorCode: string;
}>;
/** CSS classes to apply to the default element */
className?: string;
}
/**
* Displays color-based selected option.
*
* @component
* @example
* ```tsx
* // Default usage - renders "OptionName: ColorName"
*
*
* // Custom rendering with forwardRef - provides name and colorCode for custom display
*
* {React.forwardRef(({name, colorCode, ...props}, ref) => (
*
* ))}
*
* ```
*/
export declare const Color: React.ForwardRefExoticComponent>;