/** * OpenCage Angular Module * Main module for the OpenCage Angular SDK */ import { ModuleWithProviders } from '@angular/core'; import { OpenCageService } from './services/opencage.service'; import { OpenCageConfigService } from './services/opencage-config.service'; import { OpenCageCacheService } from './services/opencage-cache.service'; import { OpenCageRateLimiterService } from './services/opencage-rate-limiter.service'; import { OpenCageInterceptor } from './interceptors/opencage.interceptor'; import { CoordinateValuePipe, CoordinateCustomPipe } from './pipes/coordinate-format.pipe'; import { AddressFormatPipe, AddressComponentPipe, AddressComponentsPipe, ConfidencePipe, IsCountryPipe } from './pipes/address-format.pipe'; import { GeocodeInputDirective } from './directives/geocode-input.directive'; import { CoordinateValidatorDirective } from './directives/coordinate-validator.directive'; import { OpenCageConfig } from './models/opencage-types'; import * as i0 from "@angular/core"; import * as i1 from "@angular/common"; import * as i2 from "@angular/common/http"; import * as i3 from "./pipes/coordinate-format.pipe"; import * as i4 from "./pipes/address-format.pipe"; import * as i5 from "./directives/geocode-input.directive"; import * as i6 from "./directives/coordinate-validator.directive"; /** * OpenCage Angular SDK Module * * Usage: * * // Basic usage (API key required) * @NgModule({ * imports: [ * OpenCageAngularModule.forRoot({ apiKey: 'YOUR_API_KEY' }) * ] * }) * * // Advanced usage with configuration * @NgModule({ * imports: [ * OpenCageAngularModule.forRoot({ * apiKey: 'YOUR_API_KEY', * enableCaching: true, * cacheTtl: 300000, * enableRateLimit: true, * rateLimit: 10, * timeout: 10000 * }) * ] * }) */ export declare class OpenCageAngularModule { /** * Configure the module with OpenCage settings * This should be called in the root module */ static forRoot(config: Partial): ModuleWithProviders; /** * For feature modules (child modules) */ static forChild(): ModuleWithProviders; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * Standalone providers for use with Angular 14+ standalone bootstrap */ export declare function provideOpenCage(config: Partial): (typeof OpenCageConfigService | { provide: import("@angular/core").InjectionToken>; useValue: Partial; } | typeof OpenCageCacheService | typeof OpenCageRateLimiterService | typeof OpenCageService | { provide: import("@angular/core").InjectionToken; useClass: typeof OpenCageInterceptor; multi: boolean; })[]; /** * Exports for standalone components */ export declare const OPENCAGE_IMPORTS: (typeof CoordinateValuePipe | typeof CoordinateCustomPipe | typeof AddressFormatPipe | typeof AddressComponentPipe | typeof AddressComponentsPipe | typeof ConfidencePipe | typeof IsCountryPipe | typeof GeocodeInputDirective | typeof CoordinateValidatorDirective)[]; /** * Feature detection utilities */ export declare class OpenCageFeatures { /** * Check if geocoding is available */ static isGeocodingAvailable(): boolean; /** * Check if browser geolocation is available */ static isBrowserGeolocationAvailable(): boolean; /** * Check if local storage is available for caching */ static isLocalStorageAvailable(): boolean; /** * Get browser capabilities */ static getBrowserCapabilities(): { geocoding: boolean; geolocation: boolean; localStorage: boolean; webWorkers: boolean; serviceWorkers: boolean; }; }