@dineug/erd-editor
Version:
Entity-Relationship Diagram Editor
24 lines (23 loc) • 723 B
TypeScript
import { Ref } from '@dineug/r-html';
import { AppContext } from '../appContext';
import { Unsubscribe } from '../../internal-types';
import { ThemeOptions } from '../../themes/radix-ui-theme';
import { Theme } from '../../themes/tokens';
import { ErdEditorElement, ErdEditorProps } from './ErdEditor';
type Props = {
props: ErdEditorProps;
ctx: ErdEditorElement;
app: AppContext;
root: Ref<HTMLDivElement>;
};
export declare function useErdEditorAttachElement({ props, ctx, app, root }: Props): {
theme: Theme;
themeState: {
options: ThemeOptions;
preset: Theme;
custom: Partial<Theme>;
};
destroySet: Set<Unsubscribe>;
hasDarkMode: () => boolean;
};
export {};