import { isInsertableBlockName } from '@mlightcad/cad-simple-viewer'; export interface InsertableBlockItem { name: string; previewUrl?: string; } export { isInsertableBlockName }; /** * Active document identity used to detect drawing switches mid-refresh. */ export declare function currentBlockTableDocId(): string | undefined; /** * Records a block as recently inserted (most-recent first). */ export declare function rememberRecentBlock(blockName: string): void; /** * Returns recently inserted block names (most-recent first). */ export declare function listRecentBlockNames(): string[]; /** * Returns favorite block names. */ export declare function listFavoriteBlockNames(): string[]; /** * Toggles a block in the favorites list. Returns the new favorite state. */ export declare function toggleFavoriteBlock(blockName: string): boolean; export declare function isFavoriteBlock(blockName: string): boolean; /** * Loads insertable block definitions from the current drawing and fills * thumbnails progressively. */ export declare function useInsertableBlocks(): { blocks: import('vue').Ref<{ name: string; previewUrl?: string | undefined; }[], InsertableBlockItem[] | { name: string; previewUrl?: string | undefined; }[]>; cancelRefresh: () => void; refreshBlocks: (filterNames?: string[] | null, isActive?: () => boolean) => Promise; }; //# sourceMappingURL=useInsertableBlocks.d.ts.map