/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as WorkOS from "../../.."; export declare namespace Events { interface Options { environment?: core.Supplier; authorizationToken?: core.Supplier; fetcher?: core.FetchFunction; } interface RequestOptions { timeoutInSeconds?: number; maxRetries?: number; } } export declare class Events { protected readonly _options: Events.Options; constructor(_options?: Events.Options); /** * List events for the current environment * @throws {@link WorkOS.BadRequestError} * @throws {@link WorkOS.UnprocessableEntityError} * * @example * await workOs.events.list({ * limit: 10 * }) */ list(request?: WorkOS.ListEventsOpts, requestOptions?: Events.RequestOptions): Promise>; protected _getAuthorizationHeader(): Promise; }