import { Context } from "hono";
import { Bindings, Variables, GrantFlowUserResult } from "../types";
import { EnrichedClient } from "../helpers/client";
/**
 * Try to redeem an unrecognized refresh token at one of the tenant's
 * configured migration sources. On success, lazy-create the local user
 * (matched by upstream `sub`), mint a fresh authhero refresh token, and
 * return a `GrantFlowUserResult` so the outer dispatcher can issue
 * access/id/refresh tokens through the normal mint path.
 *
 * Returns `null` if no migration source accepts the token, letting the
 * caller fall through to the standard `invalid_grant` response.
 */
export declare function tryUpstreamRemint(ctx: Context<{
    Bindings: Bindings;
    Variables: Variables;
}>, client: EnrichedClient, refreshToken: string): Promise<GrantFlowUserResult | null>;
