import type { ServerActionBridge, ServerActionBridgeConfig } from "./types.js";
import type { EventController } from "./event-controller.js";
/**
 * Extended configuration for server action bridge with event controller
 */
export interface ServerActionBridgeConfigWithController extends ServerActionBridgeConfig {
    eventController: EventController;
    /** RSC version from initial payload metadata */
    version?: string;
}
/**
 * Create a server action bridge for handling RSC server actions
 *
 * The bridge registers a callback with the RSC runtime that handles:
 * - Encoding action arguments
 * - Sending action requests to the server
 * - Processing responses and updating UI
 * - Managing concurrent action requests via event controller
 * - HMR resilience (refetching if segments are missing)
 *
 * @param config - Bridge configuration
 * @returns ServerActionBridge instance
 */
export declare function createServerActionBridge(config: ServerActionBridgeConfigWithController): ServerActionBridge;
export { createServerActionBridge as default };
//# sourceMappingURL=server-action-bridge.d.ts.map