import * as yup from 'yup'; export declare const useSchema: ({ schema, change, submit, poller, }: { schema: yup.ObjectSchema; change?: ((value: { [key: string]: any; }) => void) | undefined; submit?: ((value: { [key: string]: any; }) => void) | undefined; poller?: ((value: { [key: string]: any; }) => void) | undefined; }) => { set: (value: { [key: string]: any; }) => void; state: { [key: string]: any; }; valid: boolean; value: (key: string) => any; error: (key: string) => Error | undefined; change: (key: string) => (data: any) => void; reset: () => void; submit: () => false | Promise | undefined; };