import type vite from '../core/vite';
export declare type TransformHook = (code: string, id: string, ssr?: boolean) => Promise<vite.TransformResult>;
/** Load vite:css’ transform() hook */
export declare function getViteTransform(viteConfig: vite.ResolvedConfig): TransformHook;
/** Transform style using Vite hook */
export declare function transformWithVite(value: string, attrs: Record<string, string>, id: string, transformHook: TransformHook): Promise<vite.TransformResult | null>;
