/**
 * Marker for `bp dev`'s per-request tunnel-forward failure (logged when a request reaches the
 * tunnel while the local worker is momentarily down — typically the rebuild/restart window).
 * The current `bp dev` output may stop at this prefix; richer versions can append request/cause
 * details after it. Match the prefix only so both shapes are classified the same way.
 *
 * Keep in sync with packages/cli/src/commands/adk-dev-events.ts so fatal stderr
 * classification and non-interactive event normalization recognize the same marker.
 */
export declare const REQUEST_HANDLING_ERROR_MARKER: RegExp;
/**
 * Classify a chunk of `bp dev` stderr as a fatal startup error, or null if not fatal.
 *
 * `econnrefused`/`connection refused` is only treated as fatal (the Botpress API being
 * unreachable) when the chunk is NOT a per-request tunnel-forward failure. A single forwarded
 * request failing because the worker is mid-restart is self-healing and must never tear down the
 * whole dev session. If `bp dev` includes a richer cause chain in that message, it can contain
 * `ECONNREFUSED`, which would otherwise trip this rule.
 */
export declare function classifyFatalStderr(text: string, port: string): string | null;
export interface RecoverableRegistrationFailure {
    /** Integration alias `bp` reported as `registration_failed`. */
    name: string;
    /** `bp`'s `statusReason` for the failure (OAuth, missing config, …); '' when none was printed. */
    reason: string;
}
export declare function classifyRecoverableDeployError(text: string): {
    failures: RecoverableRegistrationFailure[];
} | null;
//# sourceMappingURL=bp-dev-stderr.d.ts.map