import * as _angular_core from '@angular/core'; import { OnDestroy } from '@angular/core'; import { HttpContext } from '@angular/common/http'; import { ControlValueAccessor, Validators, NgControl, FormGroup, FormControl } from '@angular/forms'; import { AutoComplete } from 'primeng/autocomplete'; import { isInvalid } from '@masterteam/components'; import { ModalService } from '@masterteam/components/modal'; interface LocationValue { display_name?: string; address?: string; lat?: string | number; lon?: string | number; lng?: string | number; [key: string]: unknown; } declare function normalizeLocationValue(value: unknown): LocationValue | null; declare function getLocationDisplayName(value: LocationValue | null): string; declare function getLocationLongitude(value: LocationValue | null): string | number | undefined; interface LocationFieldConfiguration { /** * Two-letter ISO codes the place search is limited to (e.g. `['SA', 'AE']`). * Written by the property editor; takes precedence over `country`. */ countryCodes?: string[] | string; /** Legacy single-country setting, still read for existing properties. */ country?: string | { name?: string; code?: string; viewBox?: string; }; viewBox?: string; /** Gateway places-search path, overrides the default `searchUrl`. */ searchUrl?: string; /** * Nominatim-compatible geocoding endpoint. Prefer `searchUrl` for Gateway * places search; this remains for existing proxy/direct Nominatim callers. */ nominatimBaseUrl?: string; geocodingUrl?: string; endpoint?: string; /** * Defaults to true for backend/proxy URLs and false for public Nominatim. * Set explicitly only when a host needs to override that routing. */ useInterceptors?: boolean; [key: string]: unknown; } declare class LocationField implements ControlValueAccessor, OnDestroy { readonly hint: _angular_core.InputSignal; readonly label: _angular_core.InputSignal; /** Unique; shared by the control and its