/** * Resolve the Convex `api` import for the react client from emitted paths. * * Artifact path (e.g. `src/lib/manifest-convex-react.ts`) and the Convex * codegen module (`convex/_generated/api`) are both project-root-relative. * The import string is the relative module path between them — never a * hard-coded `../` depth that breaks when either side moves. */ /** Project-root path of Convex's generated `api` module (no extension). */ export declare const CONVEX_API_MODULE_PATH = "convex/_generated/api"; /** Default Builder / Capsule client artifact path. */ export declare const DEFAULT_REACT_CLIENT_PATH = "src/lib/manifest-convex-react.ts"; /** * Relative TypeScript import from one project-root file to another module path. * `toModule` may omit `.ts` (Convex `api` import style). */ export declare function relativeImportBetweenArtifacts(fromArtifact: string, toModule: string): string; /** * Choose the react client pathHint. Ignores schema-surface `output` when the * shared options bag carries `convex/schema.ts` (or similar). */ export declare function resolveReactClientPathHint(outputOption: string | undefined): string; /** * Explicit `apiImportPath` wins; otherwise derive from pathHint → API module. */ export declare function resolveReactApiImportPath(pathHint: string, apiImportPathOption: string | undefined): string; //# sourceMappingURL=react-api-import.d.ts.map