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;
interface TransformWithViteOptions {
    value: string;
    attrs: Record<string, string>;
    id: string;
    transformHook: TransformHook;
    ssr?: boolean;
}
/** Transform style using Vite hook */
export declare function transformWithVite({ value, attrs, transformHook, id, ssr }: TransformWithViteOptions): Promise<vite.TransformResult | null>;
export {};
