/// <reference types="@blockeditor/global" />
// manual import to avoid being tree-shaken
import './page-block/index.js';
import './paragraph-block/index.js';
import './list-block/index.js';
import './note-block/index.js';
import './frame-block/index.js';
import './divider-block/index.js';
import './code-block/affine-code-line.js';
import './image-block/index.js';
import './database-block/index.js';
import './surface-ref-block/index.js';
import { mindMap } from './_common/mind-map/index.js';
import { matchFlavours, Point } from './_common/utils/index.js';
import { splitElements } from './page-block/edgeless/utils/clipboard-utils.js';
import { isCanvasElement } from './page-block/edgeless/utils/query.js';
import { deserializeXYWH } from './surface-block/index.js';
export * from './_common/adapters/index.js';
export { popTagSelect, RichText, scrollbarStyle, } from './_common/components/index.js';
export {} from './_common/edgeless/frame/consts.js';
export { createEmbedBlock, defineEmbedModel, EmbedBlockElement, } from './_common/embed-block-helper/index.js';
export { ArrowDownSmallIcon, CloseIcon, DualLinkIcon16, LinkedPageIcon, PageIcon, PlusIcon, TagsIcon, } from './_common/icons/index.js';
export * from './_common/inline/inline-manager.js';
export { getAffineInlineSpecsWithReference, } from './_common/inline/presets/affine-inline-specs.js';
export { ReferenceNodeConfig } from './_common/inline/presets/nodes/reference-node/reference-config.js';
export {} from './_common/mind-map/draw.js';
export * from './_common/test-utils/test-utils.js';
export { ColorVariables, FontFamilyVariables, SizeVariables, StyleVariables, } from './_common/theme/css-variables.js';
export { extractCssVariables, ThemeObserver, } from './_common/theme/theme-observer.js';
export * from './_common/transformers/index.js';
export {} from './_common/types.js';
export { on, once } from './_common/utils/event.js';
export { createDefaultPage } from './_common/utils/init.js';
export { getThemeMode } from './_common/utils/query.js';
export * from './_specs/_specs.js';
export * from './attachment-block/index.js';
export * from './bookmark-block/index.js';
export * from './code-block/index.js';
export * from './data-view-block/index.js';
export * from './database-block/index.js';
export * from './divider-block/index.js';
export * from './embed-figma-block/index.js';
export * from './embed-github-block/index.js';
export * from './embed-html-block/index.js';
export * from './embed-linked-doc-block/index.js';
export * from './embed-youtube-block/index.js';
export * from './frame-block/index.js';
export * from './image-block/index.js';
export * from './list-block/index.js';
export * from './models.js';
export * from './note-block/index.js';
export * from './page-block/index.js';
export * from './paragraph-block/index.js';
export { Bound, BrushElementModel, CanvasElementType, ConnectorElementModel, ConnectorEndpointStyle, ConnectorMode, generateKeyBetween, GroupElementModel, ShapeElementModel, ShapeStyle, StrokeStyle, } from './surface-block/index.js';
export { SurfaceBlockComponent } from './surface-block/surface-block.js';
export { SurfaceBlockSchema } from './surface-block/surface-model.js';
export * from './surface-block/surface-service.js';
export * from './surface-ref-block/index.js';
export const BlocksUtils = {
    splitElements,
    matchFlavours,
    mindMap,
    deserializeXYWH,
    isCanvasElement,
    Point,
};
const env = typeof globalThis !== 'undefined'
    ? globalThis
    : typeof window !== 'undefined'
        ? window
        : // @ts-ignore
            typeof global !== 'undefined'
                ? // @ts-ignore
                    global
                : {};
const importIdentifier = '__ $BLOCKSUITE_BLOCKS$ __';
if (env[importIdentifier] === true) {
    // https://github.com/yjs/yjs/issues/438
    console.error('@blockeditor/blocks was already imported. This breaks constructor checks and will lead to issues!');
}
if (typeof window === 'undefined') {
    throw new Error('Seems like you are importing @blockeditor/blocks in SSR mode. Which is not supported for now.');
}
env[importIdentifier] = true;
//# sourceMappingURL=index.js.map