import { type RegistryKeyToEntry } from "@superblocksteam/vite-plugin-file-sync/parsing"; type RegistryKeyToPath = Map; type PathExists = (p: string) => Promise; /** * Parse server/apis/index.ts to extract the mapping from registry key (used in * useApi("Key")) to the entry point path (relative to app root). This ensures * deployed mode uses the same keys as edit mode (Object.keys(registry.default)). * * Supports: * - import X from './Path/api.js'; const apis = { X }; export default apis; * - import { A, B } from './Path/apis.js'; export default { A, B }; * - import X, { Y } from './Path/apis.js'; export default { X, Y }; * - const apis = { X: () => import('./Path/api') }; export default apis; * - export default { X, Y: () => import('./Path/api') }; * * @param registryContent - Raw content of server/apis/index.ts * @param registryDir - Absolute path to server/apis/ directory * @param root - App root (for computing relative paths) * @param pathExists - Async function to check if a file exists */ export declare function parseSdkRegistry(registryContent: string, registryDir: string, root: string, pathExists: PathExists): Promise; /** * Parse server/apis/index.ts to extract rich metadata including exportName. * Used by the build manifest generator to include exportName for named imports. */ export declare function parseSdkRegistryWithExportNames(registryContent: string, registryDir: string, root: string, pathExists: PathExists): Promise; export {}; //# sourceMappingURL=parse-sdk-registry.d.mts.map