import { HttpService, AuthenticationService } from 'ew-common-lib'; import { Observable } from 'rxjs'; export declare class EwMaImageService { private httpService; private authenticationService; /** * @description * API token for authentication. */ private token; /** * @description * Event id to use in the library */ eventId: string; /** * @description * environment file for API base URLs */ env: any; /** * @description * Inject services to use in this component. * @param env environment file for API base URLs. * @param httpService http service to call APIs. * @param authenticationService To get auth token. */ constructor(httpService: HttpService, authenticationService: AuthenticationService); /** * @description * Generates full url for API request. * @param url Resource name */ getUrl(url: string): string; getS3BucketUrl(): any; getResourceUrl(str: string): string; private setAwsHeaders; uploadAWSObject(route: any, data: any): Observable; getSignedAWSResponseUrl(data: any): Observable; getImageMeta(file: any): Promise; /** * @description * Service to fetch gallery images * @returns API response as observable. */ getImages(model: any): Observable; /** * @description * Service to add gallery image * @param model Data object to pass in header */ addImage(model: any): Observable; /** * @description * Service to fetch unsplash images * @returns API response as observable. */ getUnsplashImages(model: any): Observable; /** * @description * Service to search unsplash images * @returns API response as observable. */ searchUnsplashImages(model: any): Observable; /** * @description * Handle error * @param string operation * @param T result */ handleError(operation?: string, result?: T): (error: any) => Observable; }