import type { SharedNormalizedConfig, BuilderTarget, SharedCompiledPkgNames } from './types';
export declare const createVirtualModule: (content: string) => string;
export declare const removeLeadingSlash: (s: string) => string;
export declare const addTrailingSlash: (s: string) => string;
export interface AwaitableGetter<T> extends PromiseLike<T[]> {
    promises: Promise<T>[];
}
/**
 * Make Awaitable.
 */
export declare const awaitableGetter: <T>(promises: Promise<T>[]) => AwaitableGetter<T>;
export declare const isUseJsSourceMap: (config: SharedNormalizedConfig) => boolean;
export declare const isUseCssSourceMap: (config: SharedNormalizedConfig) => boolean;
export declare const getSharedPkgCompiledPath: (packageName: SharedCompiledPkgNames) => string;
export declare const isURL: (str: string) => boolean;
export * as z from './zod';
export declare function isWebTarget(target: BuilderTarget | BuilderTarget[]): boolean;
export declare function resolvePackage(loader: string, dirname: string): string;
