import { Slot, ToolbarGroup } from "@wordpress/components"; import { ComponentProps, FC, JSX, ReactNode } from "react"; type GetArrayTypeFromPossibleNestedArray | Array>> = TestType extends Array> ? TestType[number] : TestType; type BlockControlControlsType = GetArrayTypeFromPossibleNestedArray< NonNullable[0]["controls"]>[number] >; declare namespace BlockControls { type BlockControlGroup = | "default" | "block" | "inline" | "other" | "parent"; interface Props { controls?: Array; children: ReactNode; group?: BlockControlGroup | undefined; } } declare const BlockControls: { (props: BlockControls.Props): JSX.Element; Slot: FC, "name">>; }; export default BlockControls;