import { HttpEvent } from "@angular/common/http"; import { Observable } from "rxjs"; export interface ICommandBuilder { command(name: string): ICommand; fileCommand(name: string, arg: string): IFileCommand; } export interface ICommand { arg(name: string, value: T): ICommand; invoke(): Observable; } export interface IFileCommand { file(file: File): IFileCommand; files(files: File[]): IFileCommand; invoke(): Observable>; }