UNPKG

flagpole

Version:

Simple and fast DOM integration, headless or headful browser, and REST API testing framework.

25 lines (24 loc) 816 B
import { ProtoResponse } from "./response"; import { ResponseType } from "./enums"; import { iResponse, iValue } from "./interfaces"; import { HttpResponse } from "./httpresponse"; export interface ImageProperties { width: number; height: number; type: string; mime: string; length: number; url: string; } export declare class ImageResponse extends ProtoResponse implements iResponse { protected imageProperties: ImageProperties; get length(): iValue; get url(): iValue; get path(): iValue; get responseType(): ResponseType; get responseTypeName(): string; init(httpResponse: HttpResponse): void; evaluate(context: any, callback: Function): Promise<any>; find(propertyName: string): Promise<iValue>; findAll(propertyName: string): Promise<iValue[]>; }