export type WebViewLoadErrorClassification = 'transient' | 'permanent'; export type ClassifyWebViewLoadErrorArgs = { /** The native `onLoadError` domain string. */ domain: string; /** * The native error code. For `EmbeddedWebViewLoadError` this is the * platform network-stack code (iOS `NSURLError*` such as -1001 timed out, * -1003 host not found, -1004 cannot connect, -1005 connection lost, * -1009 offline; Android `WebViewClient.ERROR_*` such as -2 HOST_LOOKUP, * -6 CONNECT, -8 TIMEOUT). For `EmbeddedWebViewHttpError` it is the HTTP * status code. */ code: number; }; /** * Classifies a native embedded-webview load error as `transient` * (a reload may succeed — flaky DNS, dropped connection, killed content * process, navigation-decision stall, server hiccup) or `permanent` * (a reload of the same URL cannot succeed — malformed URL, blocked * scheme, SSL failure, App Transport Security block, HTTP 4xx). * * Anything unrecognized is treated as transient so a novel failure mode * still gets the bounded retry budget rather than failing hard on the * first hit. */ export declare const classifyWebViewLoadError: ({ code, domain, }: ClassifyWebViewLoadErrorArgs) => WebViewLoadErrorClassification;