import { Destination, NearestResult, RoutingProfile } from './interface'; interface ChunkDistancesResult { nearest: NearestResult | null; all: NearestResult[]; } /** * Factory returning a provider-specific fetchNearestInChunk function. * * It now returns: * { nearest, all } */ export declare function createFetchNearestInChunk(buildUrl: (coords: string, profile: RoutingProfile) => string, fetchData: (url: string) => Promise, extractDistances: (data: TResponse) => number[][] | undefined): (from: [number, number], chunk: Destination[], profile: RoutingProfile, maxDistanceMeters?: number) => Promise; export type { ChunkDistancesResult };