/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Chariot from "../../../index"; export declare namespace Events { interface Options { environment?: core.Supplier; token?: core.Supplier; fetcher?: core.FetchFunction; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; } } export declare class Events { protected readonly _options: Events.Options; constructor(_options?: Events.Options); /** * List all events corresponding to your Chariot account. * * @param {Chariot.EventsListRequest} request * @param {Events.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Chariot.BadRequestError} * @throws {@link Chariot.UnauthorizedError} * @throws {@link Chariot.ForbiddenError} * @throws {@link Chariot.InternalServerError} * * @example * await client.events.list() */ list(request?: Chariot.EventsListRequest, requestOptions?: Events.RequestOptions): Promise>; /** * Retrieve an event with the given ID. * * @param {string} id - The unique id for the event * @param {Events.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Chariot.BadRequestError} * @throws {@link Chariot.UnauthorizedError} * @throws {@link Chariot.ForbiddenError} * @throws {@link Chariot.NotFoundError} * @throws {@link Chariot.InternalServerError} * * @example * await client.events.get("id") */ get(id: string, requestOptions?: Events.RequestOptions): Promise; protected _getAuthorizationHeader(): Promise; }