import * as react_jsx_runtime from 'react/jsx-runtime'; import { QuillSvgProps } from '@deriv/quill-icons'; import { VariantProps } from 'class-variance-authority'; import * as react from 'react'; import { ComponentPropsWithoutRef, ComponentProps, HTMLAttributes, HtmlHTMLAttributes, InputHTMLAttributes, HTMLInputTypeAttribute, ForwardRefExoticComponent, AnchorHTMLAttributes, ReactNode } from 'react'; import * as class_variance_authority_types from 'class-variance-authority/types'; import * as _use_gesture_react_dist_declarations_src_types from '@use-gesture/react/dist/declarations/src/types'; import * as tailwind_merge from 'tailwind-merge'; export { twJoin as qtJoin } from 'tailwind-merge'; type Theme = 'dark' | 'light'; type UnionToIntersection = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never; type AsProp = T extends keyof P ? { as?: T; className?: string; } : never; type GenericElements = Pick; type VariantClassNames = { [key in T]: U; }; type OptionalVariantClassNames = { [key in T]?: U; }; type ExcludeNull = { [K in keyof T]: K extends Keys ? Exclude : T[K]; }; type ExcludeAllNull = { [K in keyof T]: Exclude; }; type ExcludeNullAndUndefined = { [P in K]-?: NonNullable; } & Omit; type QuillIconComponent = React.ForwardRefExoticComponent>; interface ThemeProviderProps { children: React.ReactNode; theme?: Theme; } declare const ThemeProvider: ({ children, theme }: ThemeProviderProps) => react_jsx_runtime.JSX.Element; interface ScreenProviderProps { children: React.ReactNode; } declare const BreakpointProvider: ({ children }: ScreenProviderProps) => react_jsx_runtime.JSX.Element; declare const actionSheetRootCVA: (props?: ({ position?: "right" | "left" | null | undefined; show?: boolean | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const actionSheetFooterCVA: (props?: ({ alignment?: "vertical" | "horizontal" | null | undefined; defaultVariants?: "alignment" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; type OpenType = { isOpen?: boolean; onOpen: () => void; } | { isOpen?: undefined; onOpen?: () => void; }; type RootProps = ComponentPropsWithoutRef<'div'> & ExcludeAllNull> & OpenType & { onClose?: () => void; type?: 'modal' | 'non-modal'; expandable?: boolean; }; type ActionType = { content: string; onAction: () => void; }; type FooterProps = ComponentPropsWithoutRef<'div'> & VariantProps & { primaryAction?: ActionType; secondaryAction?: ActionType; }; declare const Root: ({ isOpen, children, className, position, type, expandable, onOpen, onClose, }: RootProps) => react_jsx_runtime.JSX.Element; type HeaderProps = ComponentPropsWithoutRef<'div'>; declare const Header: ({ className, ...rest }: HeaderProps) => react_jsx_runtime.JSX.Element; type ContentProps$1 = ComponentPropsWithoutRef<'div'>; declare const Content: (props: ContentProps$1) => react_jsx_runtime.JSX.Element; declare const Footer: ({ primaryAction, secondaryAction, alignment, className, ...restProps }: FooterProps) => react_jsx_runtime.JSX.Element | null; type BarProps = ComponentProps<'div'>; declare const HandleBar: (props: BarProps) => react_jsx_runtime.JSX.Element; type BasicButtonSize = 'sm' | 'md' | 'lg' | 'xl'; type SocialButtonSize = 'md' | 'lg' | 'xl'; declare const baseButtonCVA: (props?: ({ isLoading?: boolean | null | undefined; fullWidth?: boolean | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const buttonColorVariantCVA: (props?: ({ variant?: "primary" | "secondary" | "tertiary" | null | undefined; colorStyle?: "white" | "black" | "coral" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const buttonSizeCVA: (props?: ({ size?: "sm" | "md" | "lg" | "xl" | null | undefined; componentType?: "with-label" | "icon-only" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const socialButtonSize: (props?: ({ size?: "md" | "lg" | "xl" | null | undefined; componentType?: "with-label" | "icon-only" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const appleSocialButtonCVA: (props?: ({ variant?: "primary" | "secondary" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const tradeButtonCVAs: (props?: ({ variant?: "primary" | "secondary" | "tertiary" | null | undefined; tradeType?: "buy" | "sell" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; type ButtonClassesProps = ExcludeAllNull & VariantProps & VariantProps>; type SocialButtonClassesProps = ExcludeAllNull & Omit, 'componentType'>>; type SocialButtonVariantProps = ExcludeAllNull>; type TradeButtonVariantProps = ExcludeAllNull & VariantProps & VariantProps>; interface ButtonProps extends React.ButtonHTMLAttributes, ButtonClassesProps { icon?: QuillIconComponent; iconPosition?: 'start' | 'end'; } declare const Button: react.ForwardRefExoticComponent>; interface BasicIconButtonProps extends Omit, 'children'>, ButtonClassesProps { icon: QuillIconComponent; } declare const IconButton: react.ForwardRefExoticComponent>; interface LinkButtonProps extends React.AnchorHTMLAttributes, ButtonClassesProps { icon?: QuillIconComponent; iconPosition?: 'start' | 'end'; } declare const LinkButton: react.ForwardRefExoticComponent>; interface TradeButtonProps extends React.ButtonHTMLAttributes, TradeButtonVariantProps { icon?: QuillIconComponent; iconPosition?: 'start' | 'end'; } declare const TradeButton: react.ForwardRefExoticComponent>; interface SocialAppleButtonProps extends React.ButtonHTMLAttributes, SocialButtonClassesProps, SocialButtonVariantProps { hideLabel?: boolean; } declare const SocialAppleButton: react.ForwardRefExoticComponent>; interface FacebookSocialButtonProps extends React.ButtonHTMLAttributes, SocialButtonClassesProps, SocialButtonVariantProps { hideLabel?: boolean; } declare const FacebookSocialButton: react.ForwardRefExoticComponent>; interface SocialGoogleButtonProps extends React.ButtonHTMLAttributes, SocialButtonClassesProps, SocialButtonVariantProps { hideLabel?: boolean; } declare const SocialGoogleButton: react.ForwardRefExoticComponent>; type ButtonTriggerProps = ComponentProps & { iconComponent?: never; iconClassName?: never; }; type IconTriggerProps = { iconComponent?: QuillIconComponent; className?: string; iconClassName?: string; }; type TriggerProps = ButtonTriggerProps | IconTriggerProps; declare const Trigger: { ({ iconComponent: Icon, iconClassName, ...restProps }: TriggerProps): react_jsx_runtime.JSX.Element; displayName: string; }; type PortalProps = ComponentProps<'div'>; declare const Portal: { ({ children, ...restProps }: PortalProps): react_jsx_runtime.JSX.Element | null; displayName: string; }; type CloseProps = ComponentProps<'button'>; declare const Close: { ({ className, ...restProps }: CloseProps): react_jsx_runtime.JSX.Element; displayName: string; }; type ActionSheetType = { Root: typeof Root; Header: typeof Header; Content: typeof Content; Footer: typeof Footer; HandleBar: typeof HandleBar; Trigger: typeof Trigger; Portal: typeof Portal; Close: typeof Close; }; declare const ActionSheet: ActionSheetType; declare const BadgeBaseCVA: (props?: ({ colorStyle?: "success" | "warning" | "danger" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const EmptyBadgeSizeCVA: (props?: ({ size?: "sm" | "md" | "lg" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const LabelBadgeSizeCVA: (props?: ({ size?: "sm" | "md" | "lg" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; type BadgeEmptyClassProps = ExcludeAllNull & VariantProps>; type BadgeLabelClassProps = ExcludeAllNull & VariantProps>; interface EmptyBadgeProps extends Omit, 'children'>, BadgeEmptyClassProps { } declare const EmptyBadge: react.ForwardRefExoticComponent>; interface LabelBadgeProps extends HTMLAttributes, BadgeLabelClassProps { } declare const LabelBadge: react.ForwardRefExoticComponent>; type BadgeVariants = { Empty: typeof EmptyBadge; Label: typeof LabelBadge; }; declare const Badge: BadgeVariants; declare const chipBaseVariant: (props?: ({ size?: "sm" | "md" | "lg" | null | undefined; dismissible?: boolean | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; type TBaseChipVariant = VariantProps; type BaseChipVariantExcludingNull = ExcludeNull; interface BaseChipProps extends BaseChipVariantExcludingNull, React.ButtonHTMLAttributes { dismissible?: boolean; icon?: QuillIconComponent; labelTag?: string; disabled?: boolean; } interface SelectableChipProps extends BaseChipProps { isDropdownOpen?: boolean; dropdown?: boolean; selected?: boolean; labelTag?: string; onChipSelect?: (event: React.MouseEvent, value: boolean) => void; onDismiss?: (event: React.MouseEvent) => void; } interface DismissibleChipProps extends BaseChipProps { disabled?: boolean; onDismiss?: (event: React.MouseEvent) => void; } type TSingleSelectItem = { value: number | string; label: React.ReactNode; disabled?: boolean; }; interface SingleSelectChipProps extends BaseChipProps { options: TSingleSelectItem[]; defaultOption: TSingleSelectItem; onSelectionChange: (item: TSingleSelectItem) => void; } interface MultiSelectChipProps extends BaseChipProps { options: TSingleSelectItem[]; label: string; onSelectionChange: (item: TSingleSelectItem[]) => void; } declare const SelectableChip: react.ForwardRefExoticComponent>; declare const DismissibleChip: react.ForwardRefExoticComponent>; declare const DropdownChipSingleSelect: react.ForwardRefExoticComponent>; declare const DropdownChipMultiSelect: react.ForwardRefExoticComponent>; type ChipVariants = { Selectable: typeof SelectableChip; Dismissible: typeof DismissibleChip; SingleSelectDropdown: typeof DropdownChipSingleSelect; MultiSelectDropdown: typeof DropdownChipMultiSelect; }; declare const Chip: ChipVariants; declare const FixContainer: ({ children, className, ...rest }: HtmlHTMLAttributes) => react_jsx_runtime.JSX.Element; declare const FluidContainer: ({ className, ...rest }: HtmlHTMLAttributes) => react_jsx_runtime.JSX.Element; type SectionElements = GenericElements<'section' | 'div' | 'article'>; type SectionAsProp = AsProp; type SectionProps = SectionAsProp & UnionToIntersection; declare const Section: ({ as, className, ...rest }: SectionProps) => react_jsx_runtime.JSX.Element; declare const baseInputWrapperVariants: (props?: ({ variant?: "fill" | "outline" | null | undefined; size?: "sm" | "md" | null | undefined; status?: "success" | "error" | "neutral" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const baseInputVariants: (props?: ({ alignment?: "center" | "left" | null | undefined; variant?: "fill" | "outline" | null | undefined; status?: "success" | "error" | "neutral" | null | undefined; size?: "sm" | "md" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; type baseInputWrapperVariantsExcludingNullAndUndefined = ExcludeNullAndUndefined, 'size' | 'status' | 'variant'>; type baseInputVariantsExcludingNullAndUndefined = ExcludeNullAndUndefined, 'alignment'>; type InputSize = baseInputWrapperVariantsExcludingNullAndUndefined['size']; type InputStatus = baseInputWrapperVariantsExcludingNullAndUndefined['status']; type InputVariant = baseInputWrapperVariantsExcludingNullAndUndefined['variant']; type InputTextAlignment = baseInputVariantsExcludingNullAndUndefined['alignment']; interface InputProps extends InputHTMLAttributes { type?: HTMLInputTypeAttribute; icon?: ForwardRefExoticComponent>; statusIcon?: ForwardRefExoticComponent>; inputSize?: InputSize; status?: InputStatus; disabled?: boolean; variant?: InputVariant; leftStatusMessage?: string; rightStatusMessage?: string; textAlignment?: InputTextAlignment; label?: string; value?: string; } declare const Input: ForwardRefExoticComponent>; type SearchFieldProps = ComponentProps; declare const SearchField: react.ForwardRefExoticComponent, "ref"> & react.RefAttributes>; type TextFieldProps = ComponentProps; declare const TextField: react.ForwardRefExoticComponent, "ref"> & react.RefAttributes>; declare const AppLayout: ({ children, className, ...rest }: React.HTMLAttributes) => react_jsx_runtime.JSX.Element; declare const linkCva: (props?: ({ colorStyle?: "white" | "black" | null | undefined; size?: "caption" | "sm" | "md" | "lg" | "xl" | null | undefined; disabled?: boolean | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; interface LinkProps extends AnchorHTMLAttributes, ExcludeNull, 'colorStyle' | 'size' | 'disabled'> { icon?: QuillIconComponent; hasIcon?: boolean; } declare const Link: react.ForwardRefExoticComponent>; declare const paginationVariants: (props?: ({ variant?: "number" | "bullet" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; type PaginationVariantProps = VariantProps; type TPaginationEvent = { currentPage: number; totalPageCount: number; }; interface PaginationProps extends ExcludeNull>, 'variant'> { className?: string; contentPerPage: number; contentLength: number; onPagination: (props: TPaginationEvent) => void; } /** * Component that can divide large lists of data into smaller more manageable pages. * @name Pagination * @param className - Styles to be applied to Pagination body * @param contentPerPage - Number of items to be displayed per page * @param contentLength - Total length of data to be paginated * @param onPagination - Function to handle pagination event. It passes an object with currentPage and totalPageCount * @param variant - Variant of Pagination. * * @example * * /> */ declare const Pagination: ({ className, contentPerPage, contentLength, onPagination, variant, }: PaginationProps) => react_jsx_runtime.JSX.Element; declare const tabVariants: (props?: ({ size?: "sm" | "md" | null | undefined; iconPosition?: "top" | "left" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; type TabProps = ComponentProps<'button'> & ExcludeAllNull>; type TabTriggerProps = TabProps & { icon?: QuillIconComponent; }; declare const TabContainer: ({ children, id, size, iconPosition, className, }: TabProps) => react_jsx_runtime.JSX.Element; type TabListProps = ComponentProps<'div'>; declare const TabList: ({ children, className }: TabListProps) => react_jsx_runtime.JSX.Element; declare const TabTrigger: { ({ children, icon: Icon, className, ...rest }: TabTriggerProps): react_jsx_runtime.JSX.Element; displayName: string; }; type ContentProps = ComponentProps<'div'>; declare const TabContent: { ({ children, className }: ContentProps): react_jsx_runtime.JSX.Element; displayName: string; }; type PaneProps = ComponentProps<'div'>; declare const TabPanel: { ({ children, className }: PaneProps): react_jsx_runtime.JSX.Element; displayName: string; }; type TabType = { Container: typeof TabContainer; List: typeof TabList; Trigger: typeof TabTrigger; Content: typeof TabContent; Panel: typeof TabPanel; }; declare const Tab: TabType; type BaseTagProps = ExcludeAllNull>; type BaseTagIconProps = ExcludeAllNull>; type BaseTagSizeProps = ExcludeAllNull>; type TagProps = ExcludeAllNull; declare const TagIconFillCVA: (props?: ({ colorStyle?: "info" | "success" | "warning" | "error" | "custom" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const TagSizeCVA: (props?: ({ size?: "sm" | "md" | "lg" | "xs" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const TagClassNamesCVA: (props?: ({ colorStyle?: "info" | "success" | "warning" | "error" | "custom" | null | undefined; isBold?: boolean | null | undefined; variant?: "fill" | "outline" | "custom" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; interface TagComponentProps extends HTMLAttributes, TagProps { icon?: QuillIconComponent; iconClassName?: string; } declare const HeroHeading: react.ForwardRefExoticComponent, HTMLHeadingElement>, "ref"> & { ref?: ((instance: HTMLHeadingElement | null) => void) | react.RefObject | null | undefined; }, "ref"> & react.RefAttributes>; declare const H1: react.ForwardRefExoticComponent, HTMLHeadingElement>, "ref"> & { ref?: ((instance: HTMLHeadingElement | null) => void) | react.RefObject | null | undefined; }, "ref"> & react.RefAttributes>; declare const H2: react.ForwardRefExoticComponent, HTMLHeadingElement>, "ref"> & { ref?: ((instance: HTMLHeadingElement | null) => void) | react.RefObject | null | undefined; }, "ref"> & react.RefAttributes>; declare const H3: react.ForwardRefExoticComponent, HTMLHeadingElement>, "ref"> & { ref?: ((instance: HTMLHeadingElement | null) => void) | react.RefObject | null | undefined; }, "ref"> & react.RefAttributes>; declare const H4: react.ForwardRefExoticComponent, HTMLHeadingElement>, "ref"> & { ref?: ((instance: HTMLHeadingElement | null) => void) | react.RefObject | null | undefined; }, "ref"> & react.RefAttributes>; declare const H5: react.ForwardRefExoticComponent, HTMLHeadingElement>, "ref"> & { ref?: ((instance: HTMLHeadingElement | null) => void) | react.RefObject | null | undefined; }, "ref"> & react.RefAttributes>; declare const H6: react.ForwardRefExoticComponent, HTMLHeadingElement>, "ref"> & { ref?: ((instance: HTMLHeadingElement | null) => void) | react.RefObject | null | undefined; }, "ref"> & react.RefAttributes>; type HeadingVariants = { Hero: typeof HeroHeading; H1: typeof H1; H2: typeof H2; H3: typeof H3; H4: typeof H4; H5: typeof H5; H6: typeof H6; }; declare const Heading: HeadingVariants; declare const bodyTextSizeCVA: (props?: ({ size?: "sm" | "md" | "lg" | "xl" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const bodyTextCVA: (props?: ({ bold?: boolean | null | undefined; italic?: boolean | null | undefined; underline?: boolean | null | undefined; colorStyle?: "disabled" | "prominent" | "default" | "subtle" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; type BodyTextProps = ExcludeNull, 'colorStyle' | 'bold' | 'italic' | 'underline'>; type BodyTextSizeProps = ExcludeNull, 'size'>; interface BodyTypographyProps extends HTMLAttributes, BodyTextProps, BodyTextSizeProps { } declare const Text: react.ForwardRefExoticComponent>; interface CaptionTextProps extends HTMLAttributes, BodyTextProps { } declare const captionTextSizeClassnames = "text-caption"; declare const CaptionText: react.ForwardRefExoticComponent>; declare const codeTextSizeCVA: (props?: ({ size?: "sm" | "md" | "lg" | "xl" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; type CodeTextSizeProps = VariantProps; interface CodeTextProps extends HTMLAttributes, BodyTextProps, CodeTextSizeProps { } declare const CodeText: react.ForwardRefExoticComponent>; declare const SectionMessageBaseCVA: (props?: ({ colorStyle?: "default" | "success" | "warning" | "danger" | "information" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const SectionMessageTitleSizeCVA: (props?: ({ size?: "sm" | "md" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; interface InformationBoxProps extends Omit, 'children' | 'title'>, VariantProps, ExcludeNull, 'size'> { title?: ReactNode; description?: ReactNode; link1?: ComponentProps; link2?: ComponentProps; } declare const InformationBox: react.ForwardRefExoticComponent>; type SectionMessageVariants = { Information: typeof InformationBox; }; declare const SectionMessage: SectionMessageVariants; type ThemeContextValue = { theme: Theme; toggleTheme: (theme: Theme) => void; }; declare const ThemeContext: react.Context; declare const useTheme: () => ThemeContextValue; declare const DOTS = "..."; type UsePaginationRangeProps = { currentPage: number; totalPageCount: number; variant: 'number' | 'bullet'; }; declare const usePaginationRange: ({ currentPage, totalPageCount, variant, }: UsePaginationRangeProps) => (number | "...")[]; type SwipeBlockType = { show?: boolean; onClose?: () => void; }; declare const useSwipeBlock: ({ show, onClose }: SwipeBlockType) => { height: string; containerRef: react.RefObject; bindHandle: (...args: any[]) => _use_gesture_react_dist_declarations_src_types.ReactDOMAttributes; isScrolled: boolean; isLg: boolean; }; type BreakpointContextValue = { isXs: boolean; isSm: boolean; isMd: boolean; isLg: boolean; isXl: boolean; isXXl: boolean; isMobile: boolean; isTablet: boolean; isDesktop: boolean; }; declare const useBreakpoint: () => BreakpointContextValue; declare const qtMerge: (...classLists: tailwind_merge.ClassNameValue[]) => string; export { ActionSheet, AppLayout, type AsProp, Badge, type BasicButtonSize, type BasicIconButtonProps, type BodyTypographyProps, BreakpointProvider, Button, type ButtonProps, CaptionText, type CaptionTextProps, Chip, CodeText, type CodeTextProps, type CodeTextSizeProps, DOTS, type ExcludeAllNull, type ExcludeNull, type ExcludeNullAndUndefined, FacebookSocialButton, type FacebookSocialButtonProps, FixContainer, FluidContainer, type GenericElements, Heading, IconButton, Link, LinkButton, type LinkButtonProps, type OptionalVariantClassNames, Pagination, type QuillIconComponent, type ScreenProviderProps, SearchField, type SearchFieldProps, Section, type SectionAsProp, type SectionElements, SectionMessage, type SectionProps, SocialAppleButton, type SocialAppleButtonProps, type SocialButtonSize, SocialGoogleButton, type SocialGoogleButtonProps, Tab, type TagComponentProps, Text, TextField, type TextFieldProps, type Theme, ThemeContext, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TradeButton, type TradeButtonProps, type UnionToIntersection, type VariantClassNames, captionTextSizeClassnames, qtMerge, useBreakpoint, usePaginationRange, useSwipeBlock, useTheme };