/** * Selector Component - Option-based component selection * * This module provides the Selector component, which selects and renders * a child component based on the current option value in the OptionContext. * It uses React 19's createContext API for compatibility. * * @module Selector */ import type { SelectorProps } from "../types"; import OptionContext from "./OptionContext"; /** * React context for OptionContext. * Provides the option context to all child components. * Compatible with React 19. */ export declare const OptionContextReact: import("react").Context; /** * Selector component for option-based rendering. * * This component selects and renders a child component based on the current * option value in the OptionContext. It automatically registers available * options from its children and selects the matching one. * * @param props - Selector configuration * @param props.option - The option definition to select based on * @param props.defaultOption - Default component or value to use * @param props.children - Child components, each representing an option value * @returns The selected child component or null * * @example * ```tsx * * * * * * ``` */ export default function Selector({ option, defaultOption, children, }: SelectorProps): import("react/jsx-runtime").JSX.Element | null;