export type SourcePeerPackage = { /** * - Removes only this invocation's shim. */ cleanup: () => Promise; /** * - Whether this invocation created the shim. */ created: boolean; /** * - Package path used for peer resolution. */ packageDirectory: string; }; /** * Invocation-owned source peer package shim. * @typedef {object} SourcePeerPackage * @property {() => Promise} cleanup - Removes only this invocation's shim. * @property {boolean} created - Whether this invocation created the shim. * @property {string} packageDirectory - Package path used for peer resolution. */ declare const SOURCE_PEER_SHIM_MARKER_FILE = ".velocious-source-peer-shim"; /** * Resolves the Velocious package directory from source or compiled execution. * @returns {Promise} - Velocious package directory. */ declare function frameworkPackageDirectory(): Promise; /** * Exposes this checkout to published peer packages without loading duplicate * classes from generated build output. * @param {string} [projectDirectory] - Velocious source checkout. * @returns {Promise} - Invocation-owned shim handle. */ declare function prepareSourcePeerPackage(projectDirectory?: string): Promise; /** * Runs work while the source peer package is available. * @template Result * @param {string} projectDirectory - Velocious source checkout. * @param {() => Promise} callback - Work requiring source peer resolution. * @returns {Promise} - Callback result. */ declare function withSourcePeerPackage(projectDirectory: string, callback: () => Promise): Promise; export { SOURCE_PEER_SHIM_MARKER_FILE, frameworkPackageDirectory, prepareSourcePeerPackage, withSourcePeerPackage }; //# sourceMappingURL=source-peer-package.d.ts.map