import type { Plugin } from "vite"; /** * Resolve the app-root-relative entry point path for a Vite module id. * * Fullstack apps keep `server/apis/` at the app root while `vite.config.ts` * often sets `root: "./client"`. Dev server and build already pass the true * app root into the plugin; failures are intermittent and depend on how Vite * resolves module ids for files outside the client subtree (for example * `../server/apis/...` relatives or `/@fs/...` absolute ids). Plain absolute * paths under `/server/apis/` already matched before this helper. */ export declare function resolveSdkApiEntryPointRelativePath(appRootDir: string, moduleId: string): string | null; /** * Vite plugin that prepends `__setEntryPoint(relativePath)` to SDK API files * so that `api()` can stamp the authoritative source file * path onto the compiled API object. * * @param appRootDir - App root (parent of `client/` and `server/`). * * Runs in both dev and build. The user's source code is never modified on disk. */ export declare function sdkApiEntryPointPlugin(appRootDir: string): Plugin; //# sourceMappingURL=vite-plugin-sdk-api-entry-point.d.mts.map