/** * Get Email Validation Results via Infobip Service * Retrieve results of bulk email validation requests * * @see https://www.infobip.com/docs/api/channels/email/validate-email-addresses */ import type { ServiceOptions } from '@plyaz/types/api'; import type { EndpointsList } from '@/api/endpoints'; import type { FetchResponse } from 'fetchff'; import type { InfobipGetValidationsParams } from '@plyaz/types/api'; /** * Get validation results via Infobip * Uses endpoint: GET /email/2/validations * * @param params - Query parameters for filtering validation results * @param options - Optional service options (client override, config overrides) * @returns Promise with InfobipGetValidationsResponse * * @example * ```typescript * // Get validation results by request ID * const { data } = await fetchInfobipValidations({ * validationRequestId: '2034072219640523000', * }); * * console.log(data.results); // Array of validation results * * // Filter by validity status * const validOnly = await fetchInfobipValidations({ * validMailbox: true, * validSyntax: true, * }); * * // Filter by risk level and other criteria * const filtered = await fetchInfobipValidations({ * risk: 'LOW', * disposable: false, * roleBased: false, * catchAll: false, * }); * * // Date range filtering * const recent = await fetchInfobipValidations({ * validatedDateFrom: '2025-03-01T12:03:15.120Z', * validatedDateTo: '2025-03-04T15:02:11.400Z', * }); * * // Pagination support * const page1 = await fetchInfobipValidations({ * size: 100, * }); * * const page2 = await fetchInfobipValidations({ * cursor: page1.data.cursor, * size: 100, * }); * ``` */ export declare function fetchInfobipValidations(params?: InfobipGetValidationsParams, options?: ServiceOptions): Promise; //# sourceMappingURL=fetchValidations.d.ts.map