export interface AppEvent { key: string; } export type AppEventPublishResult = AppEventPublishSuccess | AppEventPublishError; export type AppEventPublishSuccess = { type: 'success'; failedEvents: AppEventPublishFailure[]; }; export interface AppEventPublishFailure { event: AppEvent; errorMessage: string; } export interface AppEventPublishError { type: 'error'; errorType: AppEventErrorType; errorMessage: string; } export type AppEventErrorType = 'VALIDATION_ERROR' | 'AUTHENTICATION_ERROR' | 'AUTHORIZATION_ERROR' | 'RATE_LIMIT' | 'SERVICE_ERROR' | 'SERVICE_UNAVAILABLE' | `OTHER`; export declare const appEvents: { publish(events: AppEvent | AppEvent[]): Promise; }; //# sourceMappingURL=appEvents.d.ts.map