import { UsePickerValueLayoutResponse } from './usePickerValue.types'; import { UsePickerViewsLayoutResponse } from './usePickerViews'; import { DateOrTimeViewWithMeridiem, WrapperVariant } from '../../models/common'; /** * Props used to create the layout of the views. * Those props are exposed on all the pickers. */ export interface UsePickerLayoutProps { disabled?: boolean; readOnly?: boolean; /** * Force rendering in particular orientation. */ orientation?: 'portrait' | 'landscape'; } export interface UsePickerLayoutPropsResponseLayoutProps extends UsePickerValueLayoutResponse, UsePickerViewsLayoutResponse, UsePickerLayoutProps { isLandscape: boolean; wrapperVariant: WrapperVariant; isValid: (value: TValue) => boolean; } export interface UsePickerLayoutPropsResponse { layoutProps: UsePickerLayoutPropsResponseLayoutProps; } export interface UsePickerLayoutPropsParams { props: UsePickerLayoutProps; propsFromPickerValue: UsePickerValueLayoutResponse; propsFromPickerViews: UsePickerViewsLayoutResponse; wrapperVariant: WrapperVariant; } /** * Prepare the props for the view layout (managed by `PickersLayout`) */ export declare const usePickerLayoutProps: ({ props, propsFromPickerValue, propsFromPickerViews, wrapperVariant, }: UsePickerLayoutPropsParams) => UsePickerLayoutPropsResponse;