export default function (method: string, url: string, params: any, data: any, success: (response: any) => void, error?: (err: any) => void): void;