import { AgentContext, BaseEvent, DependencyManager, EventEmitter, Module } from "@credo-ts/core"; import { DidCommConnectionService, DidCommInboundMessageContext, DidCommMessage, DidCommMessageSender, ParsedMessageType } from "@credo-ts/didcomm"; //#region src/messages/DidCommMessageReactionsMessage.d.ts declare enum DidCommMessageReactionAction { React = "react", Unreact = "unreact", } interface DidCommMessageReactionOptions { messageId: string; emoji: string; action: DidCommMessageReactionAction; timestamp?: Date; } declare class DidCommMessageReaction { constructor(options: DidCommMessageReactionOptions); messageId: string; emoji: string; action: string; timestamp: Date; } interface MessageReactionsMessageOptions { id?: string; reactions: DidCommMessageReaction[]; } declare class MessageReactionsMessage extends DidCommMessage { constructor(options: MessageReactionsMessageOptions); reactions: DidCommMessageReaction[]; static readonly type: ParsedMessageType; readonly type: string; } //#endregion //#region src/DidCommReactionsService.d.ts declare class DidCommReactionsService { private eventEmitter; constructor(eventEmitter: EventEmitter); createReactionsMessage(options: MessageReactionsMessageOptions): Promise; processReactions(messageContext: DidCommInboundMessageContext): Promise; } //#endregion //#region src/DidcommReactionsApi.d.ts declare class DidCommReactionsApi { private messageSender; private reactionsService; private connectionService; private agentContext; constructor(messageSender: DidCommMessageSender, reactionsService: DidCommReactionsService, connectionService: DidCommConnectionService, agentContext: AgentContext); send(options: { connectionId: string; reactions: DidCommMessageReactionOptions[]; }): Promise; } //#endregion //#region src/DidCommReactionsModule.d.ts declare class DidCommReactionsModule implements Module { readonly api: typeof DidCommReactionsApi; register(dependencyManager: DependencyManager): void; initialize(agentContext: AgentContext): Promise; } //#endregion //#region src/models/DidCommReactionRole.d.ts declare enum DidCommReactionRole { Sender = "sender", Receiver = "receiver", } //#endregion //#region src/DidcommReactionsEvents.d.ts declare enum DidCommReactionsEventTypes { DidCommMessageReactionsReceived = "DidCommMessageReactionsReceived", } interface DidCommMessageReactionsReceivedEvent extends BaseEvent { type: DidCommReactionsEventTypes.DidCommMessageReactionsReceived; payload: { connectionId: string; reactions: DidCommMessageReaction[]; }; } //#endregion export { DidCommMessageReaction, DidCommMessageReactionAction, DidCommMessageReactionOptions, DidCommMessageReactionsReceivedEvent, DidCommReactionRole, DidCommReactionsApi, DidCommReactionsEventTypes, DidCommReactionsModule, DidCommReactionsService, MessageReactionsMessage, MessageReactionsMessageOptions }; //# sourceMappingURL=index.d.mts.map