import { type SetStateAction } from "react";
import type { AgentSessionActions } from "./useAgentSession";
import type { AgentSessionState } from "./types";
export declare function useAgentSessionErrorBridge(input: {
    state: AgentSessionState;
    actions: Pick<AgentSessionActions, "replaceError">;
}): {
    error: string | null;
    setError: (nextError: SetStateAction<string | null>) => void;
};
