/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments.mjs"; import * as core from "../../../../core/index.mjs"; import * as FernAI from "../../../index.mjs"; export declare namespace SlackAskFern { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; token?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } 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; /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ headers?: Record | undefined>; } } export declare class SlackAskFern { protected readonly _options: SlackAskFern.Options; constructor(_options?: SlackAskFern.Options); /** * @param {SlackAskFern.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.slackAskFern.handleSlackEvents() */ handleSlackEvents(requestOptions?: SlackAskFern.RequestOptions): core.HttpResponsePromise; private __handleSlackEvents; /** * @param {SlackAskFern.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.slackAskFern.handleSlackSlashCommands() */ handleSlackSlashCommands(requestOptions?: SlackAskFern.RequestOptions): core.HttpResponsePromise; private __handleSlackSlashCommands; /** * @param {SlackAskFern.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.slackAskFern.handleSlackInteractions() */ handleSlackInteractions(requestOptions?: SlackAskFern.RequestOptions): core.HttpResponsePromise; private __handleSlackInteractions; /** * @param {FernAI.HandleSlackOauthCallbackRequest} request * @param {SlackAskFern.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.slackAskFern.handleSlackOauthCallback({ * code: "code", * state: "state" * }) */ handleSlackOauthCallback(request: FernAI.HandleSlackOauthCallbackRequest, requestOptions?: SlackAskFern.RequestOptions): core.HttpResponsePromise; private __handleSlackOauthCallback; /** * @param {FernAI.GetSlackInstallLinkRequest} request * @param {SlackAskFern.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.slackAskFern.getSlackInstallLink({ * domain: "domain" * }) */ getSlackInstallLink(request: FernAI.GetSlackInstallLinkRequest, requestOptions?: SlackAskFern.RequestOptions): core.HttpResponsePromise; private __getSlackInstallLink; protected _getAuthorizationHeader(): Promise; }