/** * Surfaces where Block Kit payloads are rendered. Each has a different set of * blocks/elements it accepts. */ export type Surface = "message" | "modal" | "home"; /** * Reports any blocks whose type is not allowed on the given surface. Slack's * surface compatibility matrix is documented at * https://docs.slack.dev/surfaces/. Element-level restrictions (e.g. `file_input` * only valid in modals) are checked here by looking at each input block's inner * `element.type`. * @param blocks - array of Block Kit blocks * @param surface - target surface * @returns array of error messages (empty when all blocks are surface-compatible) */ export declare function checkSurfaceCompatibility(blocks: readonly { type?: string; element?: { type?: string; }; }[], surface: Surface): string[]; //# sourceMappingURL=check-surface-compatibility.d.ts.map