import Application from '../application'; import CommandExternal from './CommandExternal'; import { AggregateIdentifier } from './AggregateIdentifier'; import { ContextIdentifier } from './ContextIdentifier'; import { Dictionary } from '../../types/Dictionary'; import { User } from './User'; declare class CommandInternal extends CommandExternal { annotations: { client: { token: string; user: User; ip: string; }; initiator: { user: User; }; }; protected constructor({ contextIdentifier, aggregateIdentifier, name, id, data, metadata, annotations }: { contextIdentifier: ContextIdentifier; aggregateIdentifier: AggregateIdentifier; name: string; id: string; data: Dictionary; metadata: { timestamp: number; causationId: string; correlationId: string; }; annotations: { client: { token: string; user: User; ip: string; }; initiator: { user: User; }; }; }); static create({ contextIdentifier, aggregateIdentifier, name, data, metadata, annotations }: { contextIdentifier: ContextIdentifier; aggregateIdentifier: AggregateIdentifier; name: string; data?: Dictionary; metadata?: { causationId?: string; correlationId?: string; }; annotations: { client: { token: string; user: User; ip: string; }; initiator: { user: User; }; }; }): CommandInternal; static deserialize(object: any): CommandInternal; static validate({ command, application }: { command: any; application: Application; }): void; } export default CommandInternal;