import * as O from "fp-ts/lib/Option"; import * as TE from "fp-ts/TaskEither"; import { Recommendation } from "../recommendation/recommendation"; import { SearchSession, SearchSessionFilter, DetectedObject } from "../searchSession/searchSession"; import { ValueObject } from "../network/ion/ValueObject"; import { Link } from "../network/ion/Link"; import { Rectangle } from "../geometry/Rectangle"; import { Form } from "../network/ion/Form"; import { Handler } from "../cropper/Handler"; import { BasicError } from "../error"; declare type ImageSearchStore = { token: string | undefined; results: Recommendation[]; filters: SearchSessionFilter[]; activeIonLink: Link | undefined; cropperHandlers: Handler[]; rectangleSearchForm: Form | undefined; detectedObjects: ValueObject[]; detectedObject: ValueObject | undefined; imageWidth: number; image: O.Option; imageUrl: O.Option; imageBounds: O.Option; searchArea: O.Option; resultsComponents: HTMLElement[]; serverError: boolean; }; export declare const makeRectangularSearchRequest: () => Promise; export declare const uploadFile: (file: File) => TE.TaskEither, SearchSession>; export declare const imageSearchState: ImageSearchStore; export {};