import { type ComponentType, type FunctionComponent, type PropsWithChildren } from 'react'; import type { Subsequence } from '../../Subsequence/Subsequence'; import type { CustomInput } from '../../Input/Input'; import type { Declaration, Declarations } from '../Declarations/Declarations'; import type { Label } from '../Label/Label'; import type { Table, Tbody, Td, Th, Thead, Tr } from '../Table'; import type { CustomTextarea } from '../../Textarea/Textarea'; import type { RadioGroup } from '../Radio/RadioGroup'; import type { CustomRoundabout } from '../../Roundabout/CustomRoundabout'; import type { Button } from '../Button/Button'; import type { CustomCheckboxBoolean } from '../../CheckboxBoolean/CheckboxBoolean'; import type { CheckboxOption } from '../Checkbox/CheckboxOption'; import type { CustomDatepicker } from '../../Datepicker/Datepicker'; import type { CustomDuration } from '../../Duration/Duration'; import type { Fieldset } from '../Fieldset/Fieldset'; import type { CustomInputNumber } from '../../InputNumber/InputNumber'; import type { CustomQuestion } from '../../Question/Question'; import type { RadioOption } from '../Radio/RadioOption'; import type { Sequence } from '../../Sequence/Sequence'; import type { CustomSwitch } from '../../Switch/Switch'; import type { CustomLoop } from '../../Loop/Loop'; import type { CustomDropdown } from '../../Dropdown/Dropdown'; import type { Combobox } from '../Combobox/Combobox'; import type { ComboboxContainer } from '../Combobox/ComboboxContainer'; import type { ComboboxContentBox } from '../Combobox/ComboboxContentBox'; import type { ComboboxOption } from '../Combobox/Panel/ComboboxOption'; import type { ComboboxPanelContainer } from '../Combobox/Panel/ComboboxPanelContainer'; import type { ComboboxClearButton } from '../Combobox/Selection/ComboboxClearButton'; import type { ComboboxLabelSelection } from '../Combobox/Selection/ComboboxLabelSelection'; import type { SuggesterNotification } from '../../Suggester/SuggesterNotification'; import type { Radio } from '../../Radio/Radio'; import type { ComboboxInput } from '../Combobox/Selection/ComboboxInput'; import type { CustomSuggester } from '../../Suggester/CustomSuggester'; import type { CustomCheckboxGroup } from '../../CheckboxGroup/CustomCheckboxGroup'; import type { RouterLink } from '../MDLabel/RouterLink'; import type { SummaryResponses, SummaryTitle } from '../../Summary/Summary'; import type { LunaticComponentProps } from '../../type'; import type { MarkdownLink } from '../MDLabel/MarkdownLink'; import type { Accordion } from '../../Accordion/Accordion'; import type { CustomDatepickerFields } from '../../Datepicker/DatepickerFields'; import type { CustomFilterDescription } from '../../FilterDescription/FilterDescription'; /** * Contain the type of every customizable components. */ export type LunaticSlotComponents = { Input: typeof CustomInput; InputNumber: typeof CustomInputNumber; Sequence: typeof Sequence; Switch: typeof CustomSwitch; Subsequence: typeof Subsequence; Textarea: typeof CustomTextarea; Datepicker: typeof CustomDatepicker; Duration: typeof CustomDuration; Question: typeof CustomQuestion; Loop: typeof CustomLoop; Dropdown: typeof CustomDropdown; Radio: typeof Radio; Suggester: typeof CustomSuggester; FilterDescription: typeof CustomFilterDescription; CheckboxBoolean: typeof CustomCheckboxBoolean; CheckboxGroup: typeof CustomCheckboxGroup; CheckboxOption: typeof CheckboxOption; RadioGroup: typeof RadioGroup; RadioOption: typeof RadioOption; Combobox: typeof Combobox; ComboboxContainer: typeof ComboboxContainer; ComboboxContentBox: typeof ComboboxContentBox; ComboboxPanelContainer: typeof ComboboxPanelContainer; ComboboxOption: typeof ComboboxOption; ComboboxInput: typeof ComboboxInput; ComboboxClearButton: typeof ComboboxClearButton; ComboboxLabelSelection: typeof ComboboxLabelSelection; DatepickerFields: typeof CustomDatepickerFields; Roundabout: typeof CustomRoundabout; SuggesterNotification: typeof SuggesterNotification; SummaryTitle: typeof SummaryTitle; SummaryResponses: typeof SummaryResponses; Button: typeof Button; Label: typeof Label; Declarations: typeof Declarations; Declaration: typeof Declaration; Tr: typeof Tr; Td: typeof Td; Th: typeof Th; Tbody: typeof Tbody; Table: typeof Table; Thead: typeof Thead; Fieldset: typeof Fieldset; Notification: typeof Notification; RouterLink: typeof RouterLink; ComponentWrapper: ComponentType>; MarkdownLink: typeof MarkdownLink; Accordion: typeof Accordion; }; export declare const SlotsProvider: ({ slots, children, }: PropsWithChildren<{ slots?: Partial; }>) => import("react/jsx-runtime").JSX.Element; /** * Create a replaceable version of a component. * * The component can be replaced through the `slots` props on `LunaticComponents`. */ export declare function slottableComponent(name: keyof LunaticSlotComponents, OriginalComponent: FunctionComponent): ComponentType;