import { DomSanitizer, SafeUrl } from '@angular/platform-browser'; import { Observable } from 'rxjs'; import { ApiHttpClient } from '../client/api.client'; import { HttpOptions } from '../providers'; /** * API Photo Service * ============================================================================= * For the given URL and parameters: * * 1. Fetch the photograph blob. * 2. Convert it into a SafeUrl, or undefined if the API returned nothing. * * @see https://api.d4h.org/v2/documentation#operation/getMembershipMembersMemberImage * @see https://api.d4h.org/v2/documentation#operation/getMembershipImage */ export declare class PhotoService { protected readonly http: ApiHttpClient; protected readonly sanitizer: DomSanitizer; constructor(http: ApiHttpClient, sanitizer: DomSanitizer); get(url: string, options?: HttpOptions): Observable; private sanitize; /** * Error Handler * =========================================================================== * There are cases where the file physically does not exist in our object * store. This catches any 404 errors so the app can display the default * placeholder instead. * * @see https://github.com/D4H/decisions-project/issues/3293 */ private errorHandler; }