import type { Plugin } from "vite"; /** * Vite plugin that exposes action IDs on server reference functions. * * When React Server Components creates server references via createServerReference(), * the action ID (format: "hash#actionName") is passed as the first argument but not * exposed on the returned function. This plugin transforms the output to attach * the $id property to each server reference function, enabling the router to * identify which action was called during revalidation. * * Server bundles (RSC/SSR) get file paths in $id for filtering (e.g., "src/actions.ts#add"). * Client bundles keep hashed IDs for security (e.g., "ec387bc704d4#add"). * * Works in: * - Build mode: uses renderChunk to transform bundled chunks * - Dev mode: uses transform with enforce:"post" to transform after RSC plugin */ export declare function exposeActionId(): Plugin; //# sourceMappingURL=expose-action-id.d.ts.map