/* tslint:disable */ /* eslint-disable */ /** */ export class JsDebugStreets { free(): void; /** * @returns {string} */ getLabel(): string; /** * @returns {any} */ getNetwork(): any; /** * @returns {string | undefined} */ toDebugGeojson(): string | undefined; } /** */ export class JsStreetNetwork { free(): void; /** * @param {string} osm_xml_input * @param {string} clip_pts_geojson * @param {any} input */ constructor(osm_xml_input: string, clip_pts_geojson: string, input: any); /** * @returns {string} */ toGeojsonPlain(): string; /** * @returns {string} */ toLanePolygonsGeojson(): string; /** * @returns {string} */ toLaneMarkingsGeojson(): string; /** * @returns {string} */ toIntersectionMarkingsGeojson(): string; /** * @returns {string} */ toGraphviz(): string; /** * @returns {any[]} */ getDebugSteps(): any[]; /** * @returns {string} */ debugClockwiseOrderingGeojson(): string; /** * @param {number} intersection * @returns {string} */ debugClockwiseOrderingForIntersectionGeojson(intersection: number): string; /** * @param {number} road * @param {number} index * @returns {string} */ debugMovementsFromLaneGeojson(road: number, index: number): string; /** * @param {number} i * @returns {string} */ debugRoadsConnectedToIntersectionGeojson(i: number): string; /** * @param {bigint} id * @returns {string} */ getOsmTagsForWay(id: bigint): string; /** * Returns the entire StreetNetwork as JSON. The API doesn't have guarantees about backwards * compatibility. * @returns {string} */ toJson(): string; /** * Returns a GeoJSON Polygon showing a wide buffer around the way's original geometry * @param {bigint} id * @returns {string} */ getGeometryForWay(id: bigint): string; /** * Returns the XML string representing a way. Any OSM tags changed via * `overwrite_osm_tags_for_way` are reflected. * @param {bigint} id * @returns {string} */ wayToXml(id: bigint): string; /** * Modifies all affected roads * @param {bigint} id * @param {string} tags */ overwriteOsmTagsForWay(id: bigint, tags: string): void; /** * @param {number} road */ collapseShortRoad(road: number): void; /** * @param {number} intersection */ collapseIntersection(intersection: number): void; /** * @param {number} road */ zipSidepath(road: number): void; } export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; export interface InitOutput { readonly memory: WebAssembly.Memory; readonly __wbg_jsstreetnetwork_free: (a: number) => void; readonly jsstreetnetwork_new: (a: number, b: number, c: number, d: number, e: number, f: number) => void; readonly jsstreetnetwork_toGeojsonPlain: (a: number, b: number) => void; readonly jsstreetnetwork_toLanePolygonsGeojson: (a: number, b: number) => void; readonly jsstreetnetwork_toLaneMarkingsGeojson: (a: number, b: number) => void; readonly jsstreetnetwork_toIntersectionMarkingsGeojson: (a: number, b: number) => void; readonly jsstreetnetwork_toGraphviz: (a: number, b: number) => void; readonly jsstreetnetwork_getDebugSteps: (a: number, b: number) => void; readonly jsstreetnetwork_debugClockwiseOrderingGeojson: (a: number, b: number) => void; readonly jsstreetnetwork_debugClockwiseOrderingForIntersectionGeojson: (a: number, b: number, c: number) => void; readonly jsstreetnetwork_debugMovementsFromLaneGeojson: (a: number, b: number, c: number, d: number) => void; readonly jsstreetnetwork_debugRoadsConnectedToIntersectionGeojson: (a: number, b: number, c: number) => void; readonly jsstreetnetwork_getOsmTagsForWay: (a: number, b: number, c: number) => void; readonly jsstreetnetwork_toJson: (a: number, b: number) => void; readonly jsstreetnetwork_getGeometryForWay: (a: number, b: number, c: number) => void; readonly jsstreetnetwork_wayToXml: (a: number, b: number, c: number) => void; readonly jsstreetnetwork_overwriteOsmTagsForWay: (a: number, b: number, c: number, d: number) => void; readonly jsstreetnetwork_collapseShortRoad: (a: number, b: number) => void; readonly jsstreetnetwork_collapseIntersection: (a: number, b: number) => void; readonly jsstreetnetwork_zipSidepath: (a: number, b: number) => void; readonly __wbg_jsdebugstreets_free: (a: number) => void; readonly jsdebugstreets_getLabel: (a: number, b: number) => void; readonly jsdebugstreets_getNetwork: (a: number) => number; readonly jsdebugstreets_toDebugGeojson: (a: number, b: number) => void; readonly __wbindgen_malloc: (a: number) => number; readonly __wbindgen_realloc: (a: number, b: number, c: number) => number; readonly __wbindgen_add_to_stack_pointer: (a: number) => number; readonly __wbindgen_free: (a: number, b: number) => void; readonly __wbindgen_exn_store: (a: number) => void; } export type SyncInitInput = BufferSource | WebAssembly.Module; /** * Instantiates the given `module`, which can either be bytes or * a precompiled `WebAssembly.Module`. * * @param {SyncInitInput} module * * @returns {InitOutput} */ export function initSync(module: SyncInitInput): InitOutput; /** * If `module_or_path` is {RequestInfo} or {URL}, makes a request and * for everything else, calls `WebAssembly.instantiate` directly. * * @param {InitInput | Promise} module_or_path * * @returns {Promise} */ export default function init (module_or_path?: InitInput | Promise): Promise;