import type { OutputAsset } from 'rollup';
import type { RememberedCssSource } from './types.js';
import type { ICreateCacheReturnType } from '../../../cache/index.js';
export interface ApplyViteCssCacheResultOptions {
    applyCssResult: (source: string) => void;
    cssRuntimeAffectingHash: string;
    generatorRawSource: string;
    generatorSourceFile: string;
    lastCssResultByFile: Map<string, string>;
    lastCssSourceHashByFile: Map<string, string>;
    markCssAssetProcessed?: ((asset: OutputAsset, file?: string) => void) | undefined;
    originalSource: OutputAsset;
    outputFile: string;
    rememberedCssRuntimeSignature: string;
    rememberedSourcesCount: number;
    rememberCssSource?: ((entry: RememberedCssSource, cssRuntimeSignature?: string) => void) | undefined;
    vitePipelineCssInjectionOutputFile: string;
}
export declare function applyViteCssCacheResult(options: ApplyViteCssCacheResultOptions, source: string): void;
export interface ProcessViteCssCacheTaskOptions {
    applyResult: (source: string) => void | Promise<void>;
    cache: ICreateCacheReturnType;
    cacheKey: string;
    hashKey: string;
    onCacheHit: () => void;
    onSharedCacheHit: () => void;
    onSharedResult: (source: string) => void;
    onTransformResult: (source: string) => void;
    sharedCacheKey?: string | undefined;
    sharedResultCache: Map<string, Promise<string>>;
    taskHash: string;
    transform: () => Promise<string>;
}
export declare function processViteCssCacheTask(options: ProcessViteCssCacheTaskOptions): Promise<void>;
