import { CompileDirectivesOpts, DirectiveFn, GenerateFunctionIdFn } from './compilers.js'; import { Plugin } from 'vite'; export type { DirectiveFn, CompileDirectivesOpts, ReplacerFn, GenerateFunctionIdFn, } from './compilers.js'; export type DirectiveFunctionsViteEnvOptions = Pick; export type DirectiveFunctionsViteOptions = DirectiveFunctionsViteEnvOptions & { directive: string; onDirectiveFnsById?: (directiveFnsById: Record) => void; generateFunctionId: GenerateFunctionIdFn; }; export type DirectiveFunctionsVitePluginEnvOptions = { directive: string; callers: Array; provider: DirectiveFunctionsViteEnvOptions & { envName: string; }; onDirectiveFnsById?: (directiveFnsById: Record) => void; generateFunctionId: GenerateFunctionIdFn; /** * Returns the currently known directive functions from previous builds. * Used by server callers to look up canonical extracted filenames, * ensuring they import from the same extracted file as the client. */ getKnownDirectiveFns?: () => Record; }; export declare function TanStackDirectiveFunctionsPluginEnv(opts: DirectiveFunctionsVitePluginEnvOptions): Plugin;