//#region src/static-filter.d.ts /** * Does the source export a value the analysis would call a candidate on sight? * * Such an initializer is a call, member or `new` expression, and * `classifyValue` reports every one of those as a candidate, so for a file that * has one the transpile and parse below cannot change the answer. A schema * file almost always does (`z.object(…)`, `compile(…)`), and skipping jiti's * Babel transform for it took a quarter off a cold build of a 181-file corpus. * The prefixes the analysis calls SAFE stay out of the pattern — `typeof`, * `void` and `delete` (unary), `async`, `function` and `class` — and `await` * is left to it as well. * * A line it misreads — inside a block comment or template literal, an `export` * nested in a namespace, a `<` comparison — errs toward candidate, the * filter's documented safe direction: one extra execution, never a missed * schema. */ declare function hasObviousCandidateExport(code: string): boolean; /** * Check whether a file's exports could include Zod schemas (or compile() * results) without executing the file. `filename` selects the TS/JSX * transforms; the file does not need to exist on disk. */ declare function mayExportSchemas(code: string, filename: string): Promise; //#endregion export { hasObviousCandidateExport, mayExportSchemas }; //# sourceMappingURL=static-filter.d.ts.map