import { Plugin } from 'vite'; import { GenerateFunctionIdFn, ReplacerFn } from '@tanstack/directive-functions-plugin'; export type GenerateFunctionIdFnOptional = (opts: Omit[0], 'extractedFilename'>) => string | undefined; export type TanStackServerFnPluginOpts = { /** * This virtual import ID will be used in the server build to import the manifest * and its modules. */ manifestVirtualImportId: string; generateFunctionId?: GenerateFunctionIdFnOptional; callers: Array; provider: ServerFnPluginEnvOpts; directive: string; }; export type ServerFnPluginEnvOpts = { getRuntimeCode: () => string; replacer: ReplacerFn; envName: string; }; export declare function TanStackServerFnPlugin(opts: TanStackServerFnPluginOpts): Array;