import * as React from 'react'; import { Omit } from '../_helpers/utils'; import { ModalWrapperProps } from './ModalWrapper'; import { InlineWrapperProps } from './InlineWrapper'; import { KeyboardDateInputProps } from '../_shared/KeyboardDateInput'; import { PureDateInputProps, NotOverridableProps } from '../_shared/PureDateInput'; export declare type WrapperVariant = 'dialog' | 'inline' | 'static'; export interface WrapperProps { open: boolean; onAccept: () => void; onDismiss: () => void; onClear: () => void; onSetToday: () => void; InputComponent: React.FC; DateInputProps: T; wider?: boolean; showTabs?: boolean; } declare type OmitInnerWrapperProps> = Omit | 'showTabs'>; export declare type ModalRoot = OmitInnerWrapperProps; export declare type InlineRoot = OmitInnerWrapperProps; export declare type ExtendWrapper = { /** * Picker container option * @default 'dialog' */ variant?: WrapperVariant; } & ModalRoot & InlineRoot & Omit; export declare function getWrapperFromVariant(variant?: WrapperVariant): React.ComponentType | ModalWrapperProps>; declare type Props = { variant?: WrapperVariant; children?: React.ReactChild; } & (ModalWrapperProps | InlineWrapperProps); export declare const VariantContext: React.Context<"dialog" | "inline" | "static" | null>; export declare const Wrapper: (p: Props) => React.ReactElement>; export {};