import { IService } from '@/types'; import Krite from '@/krite'; export declare type LocatieServerObjectType = 'provincie' | 'gemeente' | 'woonplaats' | 'weg' | 'postcode' | 'adres' | 'perceel' | 'hectometerpaal' | 'wijk' | 'buurt' | 'waterschapsgrens' | 'appartementsrecht'; export interface LocatieServerSuggestOptionalParameters { lat: number; lon: number; fl: string; fq: string; qf: string; bq: string; start: number; rows: number; sort: string; wt: 'json' | 'xml'; } export interface LocatieServerInspectOptionalParameters { fl: string; fq: string; wt: 'json' | 'xml'; } export declare type LocatieServerSuggestHighlighting = Record; export interface SuggestDoc { type: LocatieServerObjectType; weergavenaam: string; id: string; score: number; } export interface LocatieServerSuggestResponse { highlighting: LocatieServerSuggestHighlighting; response: { maxScore: number; numFound: number; numFoundExact: boolean; start: number; docs: SuggestDoc[]; }; spellcheck: unknown; } export interface LocatieServerInspectResponse { response: { maxScore: number; numFound: number; numFoundExact: number; start: 0; docs: Record[]; }; } export interface KriteSuggestResponseDoc extends SuggestDoc { suggest: string; } export declare class PdokLocatieserverService implements IService { krite: Krite; added(krite: Krite): void; fetch(input: RequestInfo, init?: RequestInit): Promise; search(searchString: string, options?: Partial): Promise>>; inspect(id: string, options?: Partial): Promise; parseResponse(response: LocatieServerSuggestResponse): Partial>; }