import React from 'react'; import { AxiosRequestConfig } from 'axios'; import { AxiosCrudEndpoint, Constructor, FormEndpoint } from 'resource-endpoint'; import { RequestFormProps } from './RequestForm'; export declare type EndpointFormConfig = Omit; export declare type EndpointFormMethod = 'delete' | 'get' | 'patch' | 'post' | 'put'; export interface EndpointFormProps extends Omit { url: string; baseURL?: string; config: (inputs: any, key: string, baseURL?: string) => EndpointFormConfig; createEndpoint: (EndpointClass: Constructor) => AxiosCrudEndpoint; endpointClass: Constructor; method: EndpointFormMethod; } export declare function EndpointForm(props: EndpointFormProps): React.ReactElement; export declare namespace EndpointForm { var displayName: string; var defaultProps: { baseURL: string; config: (inputs: any, key: string, baseURL?: string | undefined) => EndpointFormConfig; createEndpoint: (EndpointClass: Constructor) => AxiosCrudEndpoint; endpointClass: typeof FormEndpoint; }; var propTypes: { children: import("prop-types").Validator; setValues: import("prop-types").Validator<(...args: any[]) => any>; values: import("prop-types").Validator; url: import("prop-types").Validator; baseURL: import("prop-types").Requireable; className: import("prop-types").Requireable; config: import("prop-types").Requireable<(...args: any[]) => any>; createEndpoint: import("prop-types").Requireable<(...args: any[]) => any>; endpointClass: import("prop-types").Requireable<(...args: any[]) => any>; initialState: import("prop-types").Requireable; onError: import("prop-types").Requireable<(...args: any[]) => any>; onSuccess: import("prop-types").Requireable<(...args: any[]) => any>; }; } //# sourceMappingURL=EndpointForm.d.ts.map