jsx-slack
Version:
Build JSON object for Slack Block Kit surfaces from JSX
17 lines (16 loc) • 926 B
TypeScript
import { ActionsBlock, SectionBlock } from '@slack/types';
import { JSXSlack } from '../../jsx';
interface GenerateBlocksContainerOptions {
aliases: Record<string, JSXSlack.FC<any>>;
availableBlockTypes: Record<string, ((block: any) => void) | true>;
typesToCheckMissingLabel?: string[];
name: string;
}
export type PrivateMetadataTransformer = (hiddenValues: object | undefined) => string | undefined;
export interface BlocksProps {
children: JSXSlack.ChildNodes;
}
export declare const generateBlocksContainer: ({ aliases, availableBlockTypes, typesToCheckMissingLabel, name, }: GenerateBlocksContainerOptions) => import("../../jsx-internals").BuiltInComponent<BlocksProps>;
export declare const generateActionsValidator: (availableTypes?: string[]) => (block: ActionsBlock) => void;
export declare const generateSectionValidator: (availableTypes?: string[]) => (block: SectionBlock) => void;
export {};