import Command from '../BaseCommand.mjs'; import type { DeviceId } from '../../interfaces/BrandedTypes.mjs'; import type FavaLibMediator from '../../FavaLibMediator.mjs'; import type { EntryId } from '../../interfaces/Entry.mjs'; export interface DeleteEntryData { entryId: EntryId; } /** * Represents a command that when executed deletes an entry from the vault. */ declare class DeleteEntryCommand extends Command { private deletedEntry?; /** * Creates a new DeleteEntryCommand instance. * @inheritdoc * @param data - The data of the entry to be deleted. */ constructor(data: DeleteEntryData, id?: string, timestamp?: number, version?: string, fromRemote?: boolean, fromDeviceId?: DeviceId); /** * Executes the command to delete the entry from the vault. * @inheritdoc * @throws {InvalidCommandError} If the command data is invalid or the entry doesn't exist. */ execute(mediator: FavaLibMediator): Promise; /** * @inheritdoc * @throws {InvalidCommandError} If the deleted entry content is not available. */ createUndoCommand(): Command; /** * Validates the command data. * @returns True if the command data is valid, false otherwise. */ validate(): boolean; } export default DeleteEntryCommand;