export type NotificationPriority = 'low' | 'normal' | 'high' | 'urgent'; export interface TagObject { name: string; color?: string; } export interface NotifyPayload { title: string; body?: string; type?: string; tag?: string; tags?: Array; priority?: NotificationPriority; payload?: Record; } export interface NotifyRequestBody { title: string; body?: string; notification_type?: string; tag?: string; tags?: Array; priority?: string; payload?: Record; } export interface NotixResponse { message: string; id: string; } export interface MetrikaConfig { enabled?: boolean; counterId?: number; prefix?: string; } export interface NotixConfig { token: string; endpoint?: string; autoCapture?: boolean; metricEnabled?: boolean; errorTrackingEnabled?: boolean; metrika?: MetrikaConfig; timeout?: number; debug?: boolean; onCapture?: (response: NotixResponse, payload: NotifyPayload) => void; }