export interface Options { delimiter?: string; success?: (data: Record) => void; error?: (errorMsg: string) => void; complete?: (statusText: string) => void; timeout?: number; method?: string; headers?: Record; data?: string | FormData | File | Blob; disableContentType?: boolean; onUploadProgress?: (progressEvent: ProgressEvent) => void; withCredentials?: boolean; } export interface OptionsWithUrl extends Options { url: string; } export function flow(url: string, options: Options): XMLHttpRequest | undefined; export function flow(options: OptionsWithUrl): XMLHttpRequest | undefined;