import { CodegenMode } from "../core/codegen/context.js"; import { CompiledSchemaInfo } from "../core/pipeline.js"; import { HoistedSchema } from "./hoist.js"; //#region src/unplugin/hoist-compile.d.ts /** A hoisted declaration whose initializer can be replaced with a compiled IIFE. */ interface CompiledHoistedSchema { /** The `_zh_*` declaration name. */ name: string; /** Original construction expression text (becomes the IIFE's schema expression). */ text: string; /** Compiled validator for the schema. */ info: CompiledSchemaInfo; } /** * Compile every eligible hoisted schema. Failures are silent per schema — * the caller leaves ineligible declarations as plain hoists. */ declare function compileHoistedSchemas(schemas: readonly HoistedSchema[], code: string, id: string, mode: CodegenMode): Promise; //#endregion export { CompiledHoistedSchema, compileHoistedSchemas }; //# sourceMappingURL=hoist-compile.d.ts.map