export default function request( url: string, type?: string, withCredentials?: boolean, headers?: object ): Promise;