import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import { Directions } from "./directions"; import { Expansion } from "./expansion"; import { Info } from "./info"; import { Isochrone } from "./isochrone"; import { Matrix } from "./matrix"; import { Options } from "./options"; import { Status } from "./status"; import { Trip } from "./trip"; export declare const protobufPackage = "valhalla"; export interface Api { /** this is the request to the api */ options: Options | undefined; /** these are different responses based on the type of request you make */ trip: Trip | undefined; /** route, optimized_route, trace_route, centroid */ directions: Directions | undefined; /** status */ status: Status | undefined; /** sources_to_targets */ matrix: Matrix | undefined; /** isochrone */ isochrone: Isochrone | undefined; /** expansion */ expansion: Expansion | undefined; /** here we store a bit of info about what happened during request processing (stats/errors/warnings) */ info: Info | undefined; } export declare const Api: MessageFns; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & { [K in Exclude>]: never; }; export interface MessageFns { encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; fromJSON(object: any): T; toJSON(message: T): unknown; create, I>>(base?: I): T; fromPartial, I>>(object: I): T; } export {}; //# sourceMappingURL=api.d.ts.map