import * as React from 'react'; import type { Options as RequestOptions } from 'ahooks/lib/useRequest/src/types'; import type { ProgressProps } from 'rc-progress'; import type { AffixProps } from '../affix'; import type { AlertProps } from '../alert'; import type { AnchorProps } from '../anchor'; import type { AvatarProps } from '../avatar'; import type { BadgeProps } from '../badge'; import type { BreadcrumbProps } from '../breadcrumb'; import type { ButtonProps } from '../button'; import type { CalendarProps } from '../calendar'; import type { CardProps } from '../card'; import type { CarouselProps } from '../carousel/interface'; import type { CascaderProps } from '../cascader'; import type { CheckboxProps } from '../checkbox'; import type { CollapseProps } from '../collapse'; import type { ColorPickerProps } from '../color-picker'; import type { DatePickerProps, RangePickerProps } from '../date-picker'; import type { DescriptionsProps } from '../descriptions'; import type { DividerProps } from '../divider'; import type { DrawerProps } from '../drawer'; import type { DropdownProps } from '../dropdown'; import type { EmptyProps } from '../empty'; import type { FloatButtonProps } from '../float-button/interface'; import type { FormProps } from '../form'; import type { ImageProps } from '../image'; import type { InputProps, TextAreaProps } from '../input'; import type { InputNumberProps } from '../input-number'; import type { ListProps } from '../list'; import type { Locale } from '../locale'; import type { MentionsProps } from '../mentions'; import type { MenuProps } from '../menu'; import type { ArgsProps as MessageArgsProps } from '../message'; import type { ModalProps } from '../modal'; import type { ArgsProps as NotificationArgsProps } from '../notification'; import type { PaginationProps } from '../pagination'; import type { PopconfirmProps } from '../popconfirm'; import type { PopoverProps } from '../popover'; import type { QRCodeProps } from '../qr-code/interface'; import type { RadioProps } from '../radio'; import type { RateProps } from '../rate'; import type { ResultProps } from '../result'; import type { ScrollbarProps } from '../scrollbar'; import type { SegmentedProps } from '../segmented'; import type { SelectProps } from '../select'; import type { SkeletonProps } from '../skeleton'; import type { SliderBaseProps } from '../slider'; import type { SpaceProps } from '../space'; import type { SpinProps } from '../spin'; import type { SplitterProps } from '../splitter'; import type { StatisticProps } from '../statistic'; import type { StepsProps } from '../steps'; import type { SwitchProps } from '../switch'; import type { TableProps } from '../table'; import type { TabsProps } from '../tabs'; import type { TagProps } from '../tag'; import type { TimelineProps } from '../timeline'; import type { TooltipProps } from '../tooltip'; import type { TourProps } from '../tour'; import type { TransferProps } from '../transfer'; import type { TreeProps } from '../tree'; import type { UploadProps } from '../upload'; import type { RenderEmptyHandler } from './defaultRenderEmpty'; export type PopupOverflow = 'viewport' | 'scroll'; export declare const Variants: readonly ["outlined", "borderless", "filled"]; export type Variant = (typeof Variants)[number]; export type AffixConfig = Pick; export type AlertConfig = Pick; export type AnchorConfig = Pick; export type AvatarConfig = Pick; export type BadgeConfig = Pick; export type BreadcrumbConfig = Pick; export type ButtonConfig = Pick; export type CalendarConfig = Pick, 'className'>; export type CardConfig = Pick; export type CarouselConfig = Pick; export type CascaderConfig = Pick; export type CheckboxConfig = Pick; export type CollapseConfig = Pick; export type ColorPickerConfig = Pick; export type DatePickerConfig = Pick; export type DescriptionsConfig = Pick; export type DividerConfig = Pick; export type DrawerConfig = Pick; export type DropdownConfig = Pick; export type EmptyConfig = Pick; export type FloatButtonConfig = Pick; export type FormConfig = Pick; export type ImageConfig = Pick; export type InputConfig = Pick; export type InputNumberConfig = Pick; export type ListConfig = Pick, 'className'>; export type MentionsConfig = Pick; export type MenuConfig = Pick; export type MessageConfig = Pick; export type ModalConfig = Pick; export type NotificationConfig = Pick; export type PaginationConfig = Pick; export type PopoverConfig = Pick; export type PopconfirmConfig = Pick; export type ProgressConfig = Pick; export type QRCodeConfig = Pick; export type RadioConfig = Pick; export type RangePickerConfig = Pick; export type RateConfig = Pick; export type ResultConfig = Pick; export type SelectConfig = Pick; export type SegmentedConfig = Pick; export type ScrollbarConfig = Pick; export type SkeletonConfig = Pick; export type SliderConfig = Pick; export type SpaceConfig = Pick; export type SplitterConfig = Pick; export type SpinConfig = Pick; export type StatisticConfig = Pick; export type StepsConfig = Pick; export type SwitchConfig = Pick; export type TableConfig = Pick; export type TabsConfig = Pick; export type TagConfig = Pick; export type TextAreaConfig = Pick; export type TimelineConfig = Pick; export type TooltipConfig = Pick; export type TourConfig = Pick; export type TransferConfig = Pick; export type TreeConfig = Pick; export type UploadConfig = Pick; export type RequestConfig = Omit, 'manual' | 'refreshDepsAction'>; export interface ConfigConsumerProps { getTargetContainer?: () => HTMLElement; getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement; getPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => string; renderEmpty?: RenderEmptyHandler; theme?: string | 'auto'; themeTarget?: React.RefObject; variant?: Variant; input?: InputConfig; textArea?: TextAreaConfig; inputNumber?: InputNumberConfig; pagination?: PaginationConfig; locale?: Locale; space?: SpaceConfig; splitter?: SplitterConfig; virtual?: boolean; popupMatchSelectWidth?: boolean; popupOverflow?: PopupOverflow; form?: FormConfig; select?: SelectConfig; affix?: AffixConfig; alert?: AlertConfig; anchor?: AnchorConfig; button?: ButtonConfig; divider?: DividerConfig; drawer?: DrawerConfig; calendar?: CalendarConfig; carousel?: CarouselConfig; cascader?: CascaderConfig; collapse?: CollapseConfig; skeleton?: SkeletonConfig; spin?: SpinConfig; segmented?: SegmentedConfig; steps?: StepsConfig; statistic?: StatisticConfig; image?: ImageConfig; list?: ListConfig; mentions?: MentionsConfig; modal?: ModalConfig; progress?: ProgressConfig; result?: ResultConfig; slider?: SliderConfig; breadcrumb?: BreadcrumbConfig; menu?: MenuConfig; checkbox?: CheckboxConfig; descriptions?: DescriptionsConfig; empty?: EmptyConfig; badge?: BadgeConfig; radio?: RadioConfig; rate?: RateConfig; switch?: SwitchConfig; transfer?: TransferConfig; avatar?: AvatarConfig; message?: MessageConfig; scrollbar?: ScrollbarConfig; tag?: TagConfig; table?: TableConfig; card?: CardConfig; tabs?: TabsConfig; timeline?: TimelineConfig; tour?: TourConfig; upload?: UploadConfig; notification?: NotificationConfig; tree?: TreeConfig; colorPicker?: ColorPickerConfig; datePicker?: DatePickerConfig; rangePicker?: RangePickerConfig; dropdown?: DropdownConfig; qrCode?: QRCodeConfig; popover?: PopoverConfig; popConfirm?: PopconfirmConfig; tooltip?: TooltipConfig; floatButton?: FloatButtonConfig; request: RequestConfig; } export declare const ConfigContext: React.Context; export declare const ConfigConsumer: React.Consumer;