import type { MenuConfig } from '@blocksuite/affine-components/context-menu'; import type { BlockComponent } from '@blocksuite/std'; import type { GfxController } from '@blocksuite/std/gfx'; import type { ExtensionType } from '@blocksuite/store'; import { type TemplateResult } from 'lit'; export interface QuickTool { type?: string; enable?: boolean; content: TemplateResult; /** * if not configured, the tool will not be shown in dense mode */ menu?: MenuConfig; priority?: number; } export interface SeniorTool { /** * Used to show in nav-button's tooltip */ name: string; content: TemplateResult; enable?: boolean; } export type ToolBuilder = (options: { block: BlockComponent; gfx: GfxController; toolbarContainer: HTMLElement; }) => T; export declare const QuickToolIdentifier: import("@blocksuite/global/di").ServiceIdentifier> & ( = ToolBuilder>(variant: import("@blocksuite/global/di").ServiceVariant) => import("@blocksuite/global/di").ServiceIdentifier); export declare const SeniorToolIdentifier: import("@blocksuite/global/di").ServiceIdentifier> & ( = ToolBuilder>(variant: import("@blocksuite/global/di").ServiceVariant) => import("@blocksuite/global/di").ServiceIdentifier); export declare const QuickToolExtension: (id: string, builder: ToolBuilder) => ExtensionType; export declare const SeniorToolExtension: (id: string, builder: ToolBuilder) => ExtensionType; //# sourceMappingURL=index.d.ts.map