import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Samsara from "../../../index.js"; export declare namespace TripsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class TripsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: TripsClient.Options); /** * This endpoint will return trips that have been collected for your organization based on the time parameters passed in. Results are paginated. * * Rate limit: 5 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Trips** under the Trips category when creating or editing an API token. Learn More. * * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * @param {Samsara.GetTripsRequest} request * @param {TripsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.trips.getTrips({ * startTime: "startTime" * }) */ getTrips(request: Samsara.GetTripsRequest, requestOptions?: TripsClient.RequestOptions): core.HttpResponsePromise; private __getTrips; /** * > 🚧 This endpoint is still on our legacy API. * * Get historical trips data for specified vehicle. This method returns a set of historical trips data for the specified vehicle in the specified time range. * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * To use this endpoint, select **Read Vehicle Trips** under the Vehicles category when creating or editing an API token. Learn More. * * @param {Samsara.V1GetFleetTripsRequest} request * @param {TripsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.trips.v1GetFleetTrips({ * vehicleId: 1000000, * startMs: 1000000, * endMs: 1000000 * }) */ v1GetFleetTrips(request: Samsara.V1GetFleetTripsRequest, requestOptions?: TripsClient.RequestOptions): core.HttpResponsePromise; private __v1GetFleetTrips; }