import { LiteralUnion } from "../ts-helpers"; export interface QUploaderHeaderItem { name: string; value: string; } export interface QUploaderFormFieldsItem { name: string; value: string; } type ValueOrFunction = | ((arg: Param) => ValueType) | ValueType; export type QUploaderFactoryObject = { url?: ValueOrFunction; method?: ValueOrFunction, readonly File[]>; headers?: ValueOrFunction; formFields?: ValueOrFunction; fieldName?: ValueOrFunction; withCredentials?: ValueOrFunction; sendRaw?: ValueOrFunction; }; export type QUploaderFactoryFn = ( files: readonly File[] ) => QUploaderFactoryObject | Promise;