/** * Tag operation. * @hidden */ export interface TagOperation { /** * The operation name */ operationType: string; /** * An array of tags. */ tags: string[]; } /** * Editor for device tags. */ export declare class TagEditor { onApply: (operations: TagOperation[]) => Promise; operations: TagOperation[]; /** * TagEditor constructor * * @hidden * @param onApply The apply function */ constructor(onApply: (operations: TagOperation[]) => Promise); /** * Adds tags to a channel. * * @param tags Tags to add. * @return The tag editor instance. */ addTags(tags: string[]): TagEditor; /** * Removes tags from the channel. * * @param tags Tags to remove. * @return The tag editor instance. */ removeTags(tags: string[]): TagEditor; /** * Applies the tag changes. */ apply(): Promise; }