import { Alert } from "./alert"; import { Finding } from "./finding"; export declare type SendAlerts = (input: SendAlertsInput[] | SendAlertsInput) => Promise; export declare const sendAlerts: SendAlerts; export interface SendAlertsInput { botId: string; finding: Finding; } export interface RawGraphqlSendAlertsResponse { data: { data: { sendAlerts: { alerts: SendAlertsResponse[]; }; }; errors: any; }; } export interface SendAlertsResponse { alertHash?: string; error?: SendAlertError; } export interface SendAlertError { code: string; message: string; } export declare type GetAlerts = (query: AlertQueryOptions) => Promise; export declare const getAlerts: GetAlerts; export interface AlertQueryOptions { botIds?: string[]; addresses?: string[]; alertHash?: string; alertName?: string; alertId?: string; alertIds?: string[]; chainId?: number; createdSince?: number; createdBefore?: number; first?: number; startingCursor?: AlertCursor; projectId?: string; scanNodeConfirmations?: { gte: number; lte: number; }; severities?: string[]; transactionHash?: string; blockSortDirection?: "desc" | "asc"; blockDateRange?: { startDate: Date; endDate: Date; }; blockNumberRange?: { startBlockNumber: number; endBlockNumber: number; }; } export interface AlertsResponse { alerts: Alert[]; pageInfo: { hasNextPage: boolean; endCursor?: { alertId: string; blockNumber: number; }; }; } export interface AlertCursor { alertId: string; blockNumber: number; }