import { IdentifierOption } from '@vanilla-extract/integration'; import fs from 'node:fs'; type TurboLoaderContext = { getOptions: { (): OptionsType; }; getResolve: (options: unknown) => { (context: string, request: string): Promise; }; fs: { readFile: typeof fs.readFile; }; rootContext: string; resourcePath: string; resourceQuery?: string; }; type TurboLoaderOptions = { identifiers: IdentifierOption | null; outputCss: boolean | null; nextEnv: Record | null; }; /** * reset the global state, used in tests to cleanup the compiler */ declare const cleanupSharedCompiler: () => void; declare function turbopackVanillaExtractLoader(this: TurboLoaderContext): Promise; export { type TurboLoaderContext, type TurboLoaderOptions, cleanupSharedCompiler, turbopackVanillaExtractLoader as default };