/** Copyright 2021 Forestry.io Holdings, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ import * as React from 'react'; import { Block } from './block'; export interface InlineBlocksProps { name: string; blocks: { [key: string]: Block; }; className?: string; style?: React.CSSProperties; direction?: 'vertical' | 'horizontal'; /** * object will be spread to every block child element */ itemProps?: { [key: string]: any; }; min?: number; max?: number; components?: { Container?: React.FunctionComponent; }; children?: React.ReactNode | null; } export interface BlocksContainerProps { className?: string; style?: React.CSSProperties; children?: React.ReactNode; } export interface InlineBlocksActions { count: number; insert(index: number, data: any): void; duplicate(sourceIndex: number, targetIndex: number): void; move(from: number, to: number): void; remove(index: number): void; blocks: { [key: string]: Block; }; direction: 'vertical' | 'horizontal'; min?: number; max?: number; } export declare const InlineBlocksContext: React.Context; export declare function useInlineBlocks(): InlineBlocksActions; export declare function InlineBlocks({ name, blocks, className, style, direction, itemProps, min, max, components, children, }: InlineBlocksProps): JSX.Element; /** * InlineBlock */ export interface InlineBlockProps { index: number; name: string; data: any; block: Block; itemProps?: { [key: string]: any; }; } export declare function InlineBlock({ name, data, block, index, itemProps, }: InlineBlockProps): JSX.Element; export declare const BlocksEmptyState: import("styled-components").StyledComponent<"div", any, {}, never>;