export type GetServerFnHandlersArgs = { workspaceRoot: string; sourceRoot: string; rootDir: string; additionalServerFnDirs?: string[]; }; export type ServerFnHandlerModule = { /** Absolute, normalized path to a discovered `*.server.ts` module. */ file: string; }; /** * Discovers the `*.server.ts` modules that may define server functions. * * Unlike page endpoints (one Nitro handler per file), server functions all * share a single `/_analog/fn/:id` dispatch route. The discovered modules are * imported for their registration side-effects — each `serverFn(...)` call * registers itself into the server-side registry at import time — after which * dispatch looks up the requested function by id. * * Scope is `//**\/*.server.ts` because the RFC allows a * server function to live in any `.server.ts` module, including existing page * server files. Files that define no server function simply register nothing. * Angular SSR config (`app.config.server.ts`) is excluded — it is not a route or * function module and must not be pulled into the dispatch bundle. * * @returns discovered modules, de-duplicated and sorted for deterministic output */ export declare function getServerFnHandlers({ workspaceRoot, sourceRoot, rootDir, additionalServerFnDirs, }: GetServerFnHandlersArgs): ServerFnHandlerModule[];