/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments.js"; import * as core from "../../../../core/index.js"; import * as FernAI from "../../../index.js"; export declare namespace SlackScribe { 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 SlackScribe { protected readonly _options: SlackScribe.Options; constructor(_options?: SlackScribe.Options); /** * @param {SlackScribe.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.slackScribe.handleScribeSlackEvents() */ handleScribeSlackEvents(requestOptions?: SlackScribe.RequestOptions): core.HttpResponsePromise; private __handleScribeSlackEvents; /** * @param {FernAI.GetFernWriterInstallLinkRequest} request * @param {SlackScribe.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.slackScribe.getFernWriterInstallLink({ * github_repo: "github_repo" * }) */ getFernWriterInstallLink(request: FernAI.GetFernWriterInstallLinkRequest, requestOptions?: SlackScribe.RequestOptions): core.HttpResponsePromise; private __getFernWriterInstallLink; /** * @param {FernAI.HandleScribeSlackOauthCallbackRequest} request * @param {SlackScribe.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.slackScribe.handleScribeSlackOauthCallback({ * code: "code", * state: "state" * }) */ handleScribeSlackOauthCallback(request: FernAI.HandleScribeSlackOauthCallbackRequest, requestOptions?: SlackScribe.RequestOptions): core.HttpResponsePromise; private __handleScribeSlackOauthCallback; /** * @param {SlackScribe.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.slackScribe.handleScribeSlashCommands() */ handleScribeSlashCommands(requestOptions?: SlackScribe.RequestOptions): core.HttpResponsePromise; private __handleScribeSlashCommands; protected _getAuthorizationHeader(): Promise; }