/**
 * This function is a replacement for built in dynamic import
 * This handles the case for windows file paths especially for absolute paths.
 *
 * @param source - File path
 */
declare function doImport(source: string): Promise<any>;
interface ImportModuleOptions {
  /**
   * Whether to return the default export of the module.
   * Default: true
   */
  default?: boolean;
  /**
   * Path to the tsconfig file to use for the import. If not provided, the tsconfig
   * will be inferred from the nearest `tsconfig.json` file.
   */
  tsconfigPath?: string;
}
/**
 * Imports a module using Jiti and returns its exports.
 *
 * @param filePath - Path to the module to import.
 * @param options - Options for the importModule function.
 * @returns The exported module.
 *
 * @internal
 */
declare function importModule<T = unknown>(filePath: string | URL, options?: ImportModuleOptions): Promise<T>;
declare const isCi: () => boolean;
declare function isInteractive(): boolean;
/**
 * Checks if the environment is staging.
 *
 * @returns True if the environment is staging, false otherwise
 * @internal
 */
declare function isStaging(): boolean;
/**
 * Normalizes a path for cross-platform comparison by converting backslashes to forward slashes.
 * Useful for converting windows paths to unix paths.
 *
 * @param path - Path to normalize
 * @returns Normalized path with forward slashes
 * @public
 */
declare function normalizePath(path: string): string;
/**
 * `structuredClone()`, but doesn't throw on non-clonable values - instead it drops them.
 *
 * @param obj - The object to clone.
 * @returns The cloned object.
 * @internal
 */
declare function safeStructuredClone<T>(obj: T): T;
export { isCi as a, isInteractive as i, normalizePath as n, importModule as o, isStaging as r, doImport as s, safeStructuredClone as t };
//# sourceMappingURL=safeStructuredClone-DAFcnqtc.d.ts.map