import { HttpService } from './http.service'; import * as i0 from "@angular/core"; export declare enum JobWorker { local = "local", predefined = "predefined", paid1 = "paid1" } export declare enum JobState { pending = "pending", running = "running", done = "done", fail = "fail", abort = "abort" } export interface TrainingJob extends ImagiationDataQuery { id?: string; pg?: string; created?: number; updated?: number; started?: number; ended?: number; hours?: number; state?: JobState; progress?: number; owner?: string; workerType?: JobWorker; pageType: string; parentModel?: string; epochs: number; imageSize: number; log?: string; numImages?: number; numTags?: number; } export interface ImageShoot { id?: string; created?: number; updated?: number; tags: Array>; author?: string; pg: string; urlBig: string; urlThumbnail: string; tagCount: number; tagList: Array; } export interface PlayDetectionData { id?: string; pg?: string; created?: number; name: string; modelId: string; numClasses: number; delayMillis: number; facingMode: string; configs: Array; lat: number; lon: number; } export interface ImagiationData { status: string; image: ImageShoot | Array; } export interface ImagiationDataArray { status: string; images: Array; } export interface JobsDataArray { status: string; jobs: Array; } export interface TheTagData { [key: string]: { txt: string; ref?: string | null; }; } export interface TagsData { status: string; tag: TheTagData; } export interface ImagiationDataQuery { offset: number; min_offset: number; max: number; max_date: number; min_date: number; max_count: number; } export interface JobDataQuery { offset: number; max: number; } export interface TryStartJobData { status: string; response?: { status: string; instanceId?: string; currentJobs?: number; maxJobs?: number; }; } export interface WatchServerData { status: string; response: { status: string; instanceId: string; currentJobs: number; maxJobs: number; }; } export interface StatValsData { count: number; } export interface StatisticData { founds: { [key: string]: StatValsData; }; confId: string; confName: string; big: string; t: number; thumb: string; pg: string; lon: number; lat: number; id: string; } export interface StatisticResponseData { status: string; images: Array; } export declare class ImageiationService { private httpService; constructor(httpService: HttpService); inferPageId(image: ImageShoot | Array): string | null; savePhoto(image: ImageShoot | Array): Promise; deletePhotos(image: ImageShoot | Array): Promise; pagePhotos(pageId: string, query: ImagiationDataQuery): Promise; tagsRead(pageId: string): Promise; tagsWrite(pageId: string, tag: TheTagData): Promise; pageJobs(pageId: string, query: JobDataQuery): Promise; saveJob(pageType: string, pageId: string, job: TrainingJob): Promise; tryStartJob(pageId: string, jobId: string): Promise; readJob(pageId: string, jobId: string): Promise; watchServer(): Promise; saveConfig(pageType: string, pageId: string, conf: PlayDetectionData): Promise; deleteConfig(pageId: string, conf: PlayDetectionData): Promise; readConfig(pageId: string, confId: string): Promise; pageConf(pageId: string, query: JobDataQuery): Promise>; storeStatistic(pageId: string, data: any): Promise; pageStatistics(pageId: string, query: ImagiationDataQuery): Promise; deleteStatistic(pageId: string, statId: string): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }