/** * This function resolves the given package name and imports it with a cache-busting * query parameter to ensure a fresh import that bypasses Node.js's module cache. * This is useful during development when you need to reload modules that may have * changed without restarting the process. * * @template T - The expected type of the imported module's default export or module object. * @param packageName - The name or path of the package/module to import * @param callerUrl - The import.meta.url of the calling module, required for relative paths * @returns A promise that resolves to the imported module with type T. * * @example * ```ts * import { importFresh } from "astro-integration-kit/dev"; * * // Bare specifiers work without callerUrl * const { default : myIntegration } = await importFresh("my-integration"); * * // Relative paths require callerUrl * const { default : localIntegration } = await importFresh("./integration", import.meta.url); * * export default defineConfig({ * integrations: [myIntegration(), localIntegration()] * }); * ``` */ declare function importFresh(packageName: string, callerUrl?: string): Promise; export { importFresh };