import { NormalizedInputOptions, NormalizedOutputOptions, OutputAsset, OutputChunk, RenderedChunk } from 'rollup';
import { Config } from '../../types/binding.js';
import { Resource, ResourcePotInfo } from '../type.js';
export type WatchChangeEvents = 'create' | 'update' | 'delete';
export declare function convertEnforceToPriority(value: 'pre' | 'post' | undefined): number;
export declare function convertWatchEventChange(value: WatchChangeEvents): WatchChangeEvents;
export declare function getContentValue(content: any): string;
export declare function isString(variable: unknown): variable is string;
export declare function isObject(variable: unknown): variable is object;
export declare function customParseQueryString(url: string | null): [string, string][];
export declare const VITE_PLUGIN_DEFAULT_MODULE_TYPE = "VITE_PLUGIN_DEFAULT_MODULE_TYPE";
export declare const CSS_LANGS_RES: [RegExp, string][];
export declare const JS_LANGS_RES: [RegExp, string][];
export declare const DEFAULT_FILTERS: string[];
export declare const FARM_CSS_MODULES_SUFFIX: RegExp;
export declare const stringifyQuery: (query: [string, string][]) => string;
export declare function formatId(id: string, query: [string, string][]): string;
export declare function isStartAdapterVirtualModule(id: string): boolean;
export declare function isStartsWithSlash(str: string): boolean;
export declare function addAdapterVirtualModuleFlag(id: string): string;
export declare function normalizeAdapterVirtualModule(id: string): string;
export declare function normalizePath(p: string): string;
export declare const removeQuery: (path: string) => string;
export declare function revertNormalizePath(p: string): string;
export declare function getCssModuleType(id: string): string | null;
export declare function getJsModuleType(id: string): string | null;
export declare function formatLoadModuleType(id: string): string;
export declare function formatTransformModuleType(id: string): string;
export declare function encodeStr(str: string): string;
export declare function decodeStr(str: string): string;
export declare function deleteUndefinedPropertyDeeply(obj: any): void;
export declare function throwIncompatibleError(pluginName: string, readingObject: string, allowedKeys: string[], key: string | number | symbol): never;
export declare function transformResourceInfo2RollupRenderedChunk(info: ResourcePotInfo): RenderedChunk;
export declare function transformResourceInfo2RollupResource(resource: Resource): OutputChunk | OutputAsset;
export declare function transformRollupResource2FarmResource(chunk: OutputChunk | OutputAsset, originResource: Resource): Resource;
export declare function transformFarmConfigToRollupNormalizedOutputOptions(config: Config['config']): NormalizedOutputOptions;
export declare function transformFarmConfigToRollupNormalizedInputOptions(config: Config['config']): NormalizedInputOptions;
export declare function normalizeFilterPath(path: string): string;
