import type { Knex } from 'knex'; import type { ActiveLog } from '@nangohq/types'; import type { Result } from '@nangohq/utils'; type ErrorNotification = Required>; type SyncErrorNotification = ErrorNotification & Required>; export declare const errorNotificationService: { auth: { create: ({ type, action, connection_id, log_id, active }: ErrorNotification) => Promise>; get: (id: number) => Promise; clear: ({ connection_id, trx }: { connection_id: ActiveLog["connection_id"]; trx?: Knex.Transaction | Knex; }) => Promise; }; sync: { create: ({ type, action, sync_id, connection_id, log_id, active }: SyncErrorNotification) => Promise>; clear: ({ sync_id, connection_id, trx }: { sync_id: ActiveLog["sync_id"]; connection_id: ActiveLog["connection_id"]; trx?: Knex.Transaction | Knex; }) => Promise; clearBySyncId: ({ sync_id }: Pick) => Promise; /** * Clear By Sync Config Id * @description Clear all sync notifications by sync config id. This is used * when disabling a sync at the integration level. Any active logs are * no longer relevant because the sync is disabled. */ clearBySyncConfig: ({ sync_config_id }: { sync_config_id: number; }) => Promise; }; }; export {};