import { OnDestroy } from '@angular/core'; import { Store } from '@ngrx/store'; import { GeoPoint, GlobalMessageService, PointOfService, RoutingService, SearchConfig, WindowRef } from '@spartacus/core'; import { Observable, Subscription } from 'rxjs'; import { StoreEntities } from '../model'; import { StateWithStoreFinder } from '../store/store-finder-state'; import * as i0 from "@angular/core"; export declare class StoreFinderService implements OnDestroy { protected store: Store; protected winRef: WindowRef; protected globalMessageService: GlobalMessageService; protected routingService: RoutingService; protected platformId: any; private geolocationWatchId; protected subscription: Subscription; constructor(store: Store, winRef: WindowRef, globalMessageService: GlobalMessageService, routingService: RoutingService, platformId: any); /** * Returns boolean observable for store's loading state */ getStoresLoading(): Observable; /** * Returns boolean observable for store's success state */ getStoresLoaded(): Observable; /** * Returns observable for store's entities */ getFindStoresEntities(): Observable; /** * Returns observable for a single store by Id */ getFindStoreEntityById(): Observable; /** * Returns boolean observable for view all store's loading state */ getViewAllStoresLoading(): Observable; /** * Returns observable for view all store's entities */ getViewAllStoresEntities(): Observable; /** * Store finding action functionality * @param queryText text query * @param searchConfig search configuration * @param longitudeLatitude longitude and latitude coordinates * @param countryIsoCode country ISO code * @param useMyLocation current location coordinates * @param radius radius of the scope from the center point */ findStoresAction(queryText: string, searchConfig?: SearchConfig, longitudeLatitude?: GeoPoint, countryIsoCode?: string, useMyLocation?: boolean, radius?: number): void; /** * View all stores */ viewAllStores(): void; /** * View all stores by id * @param storeId store id */ viewStoreById(storeId: string): void; private clearWatchGeolocation; private isEmpty; /** * Reload store data when store entities are empty because of the context change */ protected reloadStoreEntitiesOnContextChange(): void; callFindStoresAction(routeParams: { [key: string]: string; }): void; ngOnDestroy(): void; /** * Returns store latitude * @param location store location */ getStoreLatitude(location: PointOfService): number | undefined; /** * Returns store longitude * @param location store location */ getStoreLongitude(location: PointOfService): number | undefined; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }