import type { AnnotationTagEntity } from '@n8n/db'; import { AnnotationTagRepository } from '@n8n/db'; type IAnnotationTagDb = Pick; type IAnnotationTagWithCountDb = IAnnotationTagDb & { usageCount: number; }; type GetAllResult = T extends { withUsageCount: true; } ? IAnnotationTagWithCountDb[] : IAnnotationTagDb[]; export declare class AnnotationTagService { private tagRepository; constructor(tagRepository: AnnotationTagRepository); toEntity(attrs: { name: string; id?: string; }): AnnotationTagEntity; save(tag: AnnotationTagEntity): Promise; delete(id: string): Promise; getAll(options?: T): Promise>; } export {};