import { Selector, Comparer } from 'use-optimized-selector'; import { FormikApi, FormikState } from '../types'; /** * Use Formik State from within Render. * * @param selector a memoized or constant function like `state => state.isSubmitting` * @param comparer an optional comparer, for checking whether previous and next selector results are equal * @param shouldSubscribe a bail-out for when the value doesn't need to be updated after the initial render. enables optional subscriptions for `render` props. */ export declare const useFormikState: >(selector?: Selector, Return>, comparer?: Comparer | undefined, shouldSubscribe?: boolean) => [Return, FormikApi];