/** * Registry of server actions grouped by page path. * * The outer key is the page URL path (e.g. "/contact"). The inner object maps * each exported action name to the absolute file path of the `page.action.ts` * module that defines it. */ export type ActionRegistry = Record>; /** * Scans `page.action.ts` modules and returns a per-page registry of server actions. * * Only named function exports are collected; default exports are ignored. The * registry is keyed by page URL path so the client can resolve actions scoped * to a specific page and avoid name collisions between different routes. */ export declare function scanActions(appDir: string): Promise; /** * Return a copy of the action registry where every file path is made relative to * the given project root. Useful for serializing actions into the HTML shell * without exposing absolute server paths. */ export declare function relativeActions(actions: ActionRegistry, root: string): ActionRegistry; /** * Return only the names of available actions per page, without file paths. * This is the safe format to serialize into the HTML shell: the client only * needs to know which actions exist, never where they are implemented. */ export declare function actionNames(actions: ActionRegistry): Record;