/** * * @param {number} timeout Override the default network timeout for this request * @returns a response with the following fields: * { * result, - the resulting data from the request * error, - error if there is one * loading, - boolean indicating if the request is still loading * deleteIt, - Method that executes the delete. Accepts the following arguments * @param {string} url The url to request * @param {*} params Optional url parameters to pass to the request * @param {*} headers Optional headers to pass to the request * } */ export default function useDelete(timeout?: number): { result: undefined; error: undefined; loading: boolean; deleteIt: (url: any, params?: {}, headers?: {}) => Promise; };