import { DomainEvent } from "../../../../features/eventPublisher/index.js"; import type { IEventHandler } from "../../../../features/eventPublisher/index.js"; import type { Identity } from "../../../../features/security/IdentityContext/Identity.js"; export interface BeforeAuthenticationPayload { token: string; } export declare class BeforeAuthenticationEvent extends DomainEvent { eventType: "authentication.beforeAuthentication"; getHandlerAbstraction(): import("@webiny/di").Abstraction>; } /** Hook into authentication lifecycle before authentication occurs. */ export declare const BeforeAuthenticationEventHandler: import("@webiny/di").Abstraction>; export declare namespace BeforeAuthenticationEventHandler { type Interface = IEventHandler; type Event = BeforeAuthenticationEvent; } export interface AfterAuthenticationPayload { identity: Identity; token: string; } export declare class AfterAuthenticationEvent extends DomainEvent { eventType: "authentication.afterAuthentication"; getHandlerAbstraction(): import("@webiny/di").Abstraction>; } /** Hook into authentication lifecycle after authentication occurs. */ export declare const AfterAuthenticationEventHandler: import("@webiny/di").Abstraction>; export declare namespace AfterAuthenticationEventHandler { type Interface = IEventHandler; type Event = AfterAuthenticationEvent; }