export declare function isTransientDbError(err: any): boolean; /** The AGE lazy-label-creation race, in BOTH manifestations (42P07 duplicate_table * and 23505 unique_violation on a pg_catalog index). Re-running the same * idempotent graph statement once the label exists succeeds. Label-agnostic. */ export declare function isLabelCreationRaceError(err: any): boolean; export interface DbRetryHooks { onRetry?: (info: { label: string; attempt: number; error: any; }) => void; } /** Install process-wide retry observers (used by the eval perf/error report). */ export declare function setDbRetryHooks(hooks: DbRetryHooks): void; export interface DbRetryOpts { tries?: number; /** Which errors are retryable. Default: isTransientDbError (connection class). */ isRetryable?: (err: any) => boolean; } export declare function withDbRetry(label: string, fn: () => Promise, opts?: DbRetryOpts): Promise; //# sourceMappingURL=db-retry.d.ts.map