import type { ISupplyDataFunctions } from 'n8n-workflow'; interface RetryableError extends Error { code?: string; status?: number; retriesLeft?: number; } /** * Handler function type for failed attempts (retry logic) */ export type FailedAttemptHandler = (error: RetryableError) => void | Promise; /** * This function returns a custom failed attempt handler for using with language models. * It first tries to use a custom handler passed as an argument, and if that doesn't throw an error, it uses the default handler. * It always wraps the error in a NodeApiError. * It throws an error ONLY if there are no retries left. */ export declare const makeN8nLlmFailedAttemptHandler: (ctx: ISupplyDataFunctions, handler?: FailedAttemptHandler) => FailedAttemptHandler; export {}; //# sourceMappingURL=n8nLlmFailedAttemptHandler.d.ts.map