/**
 * detect_middleware_env_regression — static check for the Issue #3587 pattern:
 * in a chain of 3+ middleware, intermediate entries declared with plain
 * `createMiddleware(...)` (no Env generic) reset the accumulated Env type
 * back to BlankEnv. Downstream middleware then can't see the custom bindings.
 *
 * Best-effort heuristic — regex over middleware declaration files, not a
 * real type checker. Flags candidates for manual review rather than hard
 * assertions, and documents this in the result `note` field.
 *
 * Spec: docs/specs/2026-04-11-hono-phase-2-plan.md (T10)
 */
export interface EnvRegressionFinding {
    chain_scope: string;
    chain_length: number;
    middleware_name: string;
    file: string;
    /** First line in the file where the plain createMiddleware( call occurs. */
    line: number;
    reason: "plain_createMiddleware_no_generic";
}
export interface EnvRegressionResult {
    findings?: EnvRegressionFinding[];
    total?: number;
    note?: string;
    error?: string;
}
export declare function detectMiddlewareEnvRegression(repo: string): Promise<EnvRegressionResult>;
//# sourceMappingURL=hono-env-regression.d.ts.map