import type { Logger, ViteDevServer } from "vite";
import type { IncomingMessage, ServerResponse } from "node:http";
import { PassThrough } from "node:stream";
import type { ServerActionHandlerOptions } from "./handleServerActionHelper.js";
/**
 * Creates a pass-through stream for server action responses.
 */
export declare function createServerActionStream(res: ServerResponse): PassThrough;
/**
 * Handles errors in server action processing.
 */
export declare function handleServerActionError(error: unknown, res: ServerResponse, logger?: Logger): void;
/**
 * Server-side server action handler that uses ssrLoadModule
 */
export declare function handleServerAction(req: IncomingMessage, res: ServerResponse, options: ServerActionHandlerOptions): Promise<void>;
/**
 * ViteDevServer-specific wrapper for the server handler
 */
export declare function handleServerActionWithViteServer(req: IncomingMessage, res: ServerResponse, server: ViteDevServer, handlerOptions: {
    verbose?: boolean;
    projectRoot: string;
}): Promise<void>;
export { parseServerActionRequest, parseServerActionRequestBody, createServerActionResponse, setupServerActionHeaders } from "./handleServerActionHelper.js";
export type { ServerActionRequest, ServerActionHandlerOptions } from "./handleServerActionHelper.js";
//# sourceMappingURL=handleServerAction.server.d.ts.map