export declare function useSubmit(url: string, method: string, pageKey: string, modalKey?: string): (values: { [x: string]: any; }) => Promise;