flagpole
Version:
Simple and fast DOM integration, headless or headful browser, and REST API testing framework.
28 lines (27 loc) • 891 B
TypeScript
import { ProtoResponse } from "./response";
import { ResponseType } from "./enums";
import { iResponse } from "./interfaces";
import { Value } from './value';
import { HttpResponse } from './httpresponse';
export interface ImageProperties {
width: number;
height: number;
type: string;
mime: string;
wUnits: string;
hUnits: string;
length: number;
url: string;
}
export declare class ImageResponse extends ProtoResponse implements iResponse {
protected imageProperties: ImageProperties;
readonly length: Value;
readonly url: Value;
readonly path: Value;
readonly responseType: ResponseType;
readonly responseTypeName: string;
init(httpResponse: HttpResponse): void;
evaluate(context: any, callback: Function): Promise<any>;
find(propertyName: string): Promise<Value>;
findAll(propertyName: string): Promise<Value[]>;
}