import type { FormField } from '@funkit/connect-core'; import { Animated } from 'react-native'; import type { KycSectionPage } from './formLayout'; import { type NativeDatePicker } from './nativeDatePicker'; export interface DatePickerDock { /** The page's date a picker answers, absent when none can. */ field?: FormField; /** Set whenever a picker could answer this page's date, open or not. */ Picker?: NativeDatePicker; /** The native peer is still resolving for this page's date. */ isLoading: boolean; isOpen: boolean; /** Pressing the field raises the picker, and presses it away again. */ toggle: () => void; close: () => void; /** Room the picker takes while up; 0 on a page that has none. */ height: number; /** 0 closed, 1 open, on the keyboard's own curve. */ slide: Animated.Value; } /** * The date picker a form page stands over. * * Held here rather than in the screen so the form does not carry the rules * about which platform draws what: the screen only needs to know how much * room to give up and what to draw in it. */ export declare function useDatePickerDock( /** Absent while the form is on its faceplate, or has no page to draw. */ page: KycSectionPage | undefined, step: number): DatePickerDock; //# sourceMappingURL=useDatePickerDock.d.ts.map