import { StartCompiler } from './compiler.js'; import { CompileStartFrameworkOptions, StartCompilerImportTransform, StartCompilerPlugin, StartCompilerTransformResult, StartCompilerVirtualModuleContext } from '../types.js'; import { DevServerFnModuleSpecifierEncoder, GenerateFunctionIdFnOptional, ServerFn } from './types.js'; export interface CreateStartCompilerOptions { env: 'client' | 'server'; envName: string; root: string; framework: CompileStartFrameworkOptions; providerEnvName: string; mode: 'dev' | 'build'; generateFunctionId?: GenerateFunctionIdFnOptional; compilerTransforms?: Array | undefined; compilerPlugins?: Array | undefined; serverFnProviderModuleDirectives?: ReadonlyArray | undefined; warn?: (message: string) => void; onServerFnsById?: (d: Record) => void; getKnownServerFns: () => Record; encodeModuleSpecifierInDev?: DevServerFnModuleSpecifierEncoder; loadModule: (id: string) => Promise; resolveId: (id: string, importer?: string) => Promise; } export declare function createStartCompiler(options: CreateStartCompilerOptions): StartCompiler; export declare function mergeServerFnsById(current: Record, next: Record): void; export declare function matchesCodeFilters(code: string, filters: ReadonlyArray): boolean; export declare function createCompilerVirtualModuleIdPattern(compilerPlugins: ReadonlyArray): RegExp | undefined; export declare function loadCompilerVirtualModule(compilerPlugins: ReadonlyArray, context: StartCompilerVirtualModuleContext): StartCompilerTransformResult | null;