import { SlackAppEnv } from "../app-env"; import { AuthorizeError } from "../errors"; import { PreAuthorizeSlackMiddlewareRequest } from "../request/request"; export interface AuthorizeErrorHandlerArgs { request: PreAuthorizeSlackMiddlewareRequest; error: AuthorizeError; } /** * The function that handles an error thrown by authorize function. If this function returns a Response instead of the thrown exception, the App immediately returns the response and skip executing all the following middleware and listeners. */ export type AuthorizeErrorHandler = (args: AuthorizeErrorHandlerArgs) => Promise; export declare function buildDefaultAuthorizeErrorHanlder(): AuthorizeErrorHandler; //# sourceMappingURL=authorize-error-handler.d.ts.map