import { CityName, Street } from "../index"; import type { StreetHint } from "./streets.types"; import { AnyBulkWriteOperation, BulkWriteOptions, BulkWriteResult, Collection, Filter, ObjectId as MongoObjectId } from "mongodb"; export declare const getStreetsCollection: () => Collection; export declare const bulkWriteStreets: (operations: AnyBulkWriteOperation[], options?: BulkWriteOptions) => Promise; export declare const findStreets: (filter?: Filter) => Promise; export declare const getStreetById: (streetId: string) => Promise; export declare const getStreetsByCityName: (cityName: CityName) => Promise; export declare const getStreetByStreetId: (streetId: string) => Promise; /** Get street by business id and city. Use this when the client's city is known so the same id in another city is not returned. */ export declare const getStreetByStreetIdAndCity: (streetId: string, cityName: CityName) => Promise; export declare const createStreet: (streetData: Omit) => Promise; export declare const updateStreet: (streetId: string, data: Partial>) => Promise; /** * Add or update a street hint on an already-fetched street. * Only place that creates a new hint id (Date.getTime().toString()). Returns null if hint.id provided but not found, or text empty. */ export declare const upsertStreetHintOnStreet: (street: Street, hint: Partial & Pick) => Promise; /** Remove a hint from a street. streetId is the street business id (e.g. "703"). Updates document updatedAt. */ export declare const deleteStreetHint: (streetId: string, hintId: string) => Promise; export declare const deleteStreet: (streetId: string) => Promise; //# sourceMappingURL=streets.getters.d.ts.map