import React from 'react' import { Engine, IResource, IBehavior } from '@designable/core' export interface IDesignerLayoutProps { prefixCls?: string theme?: 'dark' | 'light' | (string & {}) variables?: Record position?: 'fixed' | 'absolute' | 'relative' } export interface IDesignerProps extends IDesignerLayoutProps { engine: Engine } export interface IDesignerComponents { [key: string]: DnFC | DnComponent } export interface IDesignerLayoutContext { theme?: 'dark' | 'light' | (string & {}) prefixCls: string position: 'fixed' | 'absolute' | 'relative' } export interface IWorkspaceContext { id: string title?: string description?: string } export type DnFC

= React.FC

& { Resource?: IResource[] Behavior?: IBehavior[] } export type DnComponent

= React.ComponentType

& { Resource?: IResource[] Behavior?: IBehavior[] }