UNPKG

reblock

Version:

Build interactive Slack surfaces with React

15 lines (14 loc) 566 B
import Slack from '@slack/bolt' import type { Root } from './renderer' import type { ModalRoot } from './surfaces/modal' import { type AppHomeRoot } from './surfaces/appHome' import type { ReactNode } from 'react' export declare const activeRoots: Set<Root> /** key: view ID */ export declare const activeModals: Map<string, ModalRoot> export declare const activeAppHomes: Map<string, AppHomeRoot> export declare function ensureEventRegistered(app: Slack.App): void export declare function appHome( app: Slack.App, handler: (userID: string) => ReactNode ): void