import type { SharedNormalizedConfig, BuilderTarget, SharedCompiledPkgNames } from './types'; export declare const isProd: () => boolean; export declare const createVirtualModule: (content: string) => string; export declare const removeLeadingSlash: (s: string) => string; export declare const addTrailingSlash: (s: string) => string; export interface AwaitableGetter extends PromiseLike { promises: Promise[]; } /** * Make Awaitable. */ export declare const awaitableGetter: (promises: Promise[]) => AwaitableGetter; 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;