import type { ComponentProps, MouseEventHandler, PropsWithChildren, ReactNode } from 'react'; import React from 'react'; export type SwitchFieldProps = Omit>, 'children'> & { /** Label content, ignored when `title` is set. */ children?: ReactNode; /** Description line below the title. Rendered only with `title`. */ description?: string; /** Class applied to the root element. */ fieldClassName?: string; /** Title line. Replaces `children` as the label. */ title?: string; }; export declare const SwitchField: ({ children, description, fieldClassName, title, ...props }: SwitchFieldProps) => import("react/jsx-runtime").JSX.Element; export type SwitchProps = Omit, 'type'> & { on?: boolean; onSwitchClick?: MouseEventHandler; /** * Renders only the visual switch, without an input, for when another element owns interaction * (e.g. a button row, which cannot contain an input). */ presentation?: boolean; switchRef?: React.RefObject; }; export declare const Switch: ({ className, on, onSwitchClick, presentation, switchRef, ...props }: SwitchProps) => import("react/jsx-runtime").JSX.Element; export type SwitchFieldLabelProps = ComponentProps<'label'> & { /** Adds the `str-chat__form__switch-field__label--as-error` class to the root. */ asError?: boolean; title?: string; description?: string; }; export declare const SwitchFieldLabel: ({ asError, children, className, description, title, ...props }: SwitchFieldLabelProps) => import("react/jsx-runtime").JSX.Element; export type SwitchFieldTitleProps = ComponentProps<'div'> & { title?: string; }; export declare const SwitchFieldTitle: ({ children, className, title, ...props }: SwitchFieldTitleProps) => import("react/jsx-runtime").JSX.Element; export type SwitchFieldDescriptionProps = ComponentProps<'div'> & { description?: string; }; export declare const SwitchFieldDescription: ({ children, className, description, ...props }: SwitchFieldDescriptionProps) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=SwitchField.d.ts.map