import { EnvAccess } from "./types.js"; //#region src/scanner.d.ts /** * Scans a module's source code for accesses to server-only environment variables. * Applies a targeted regex pattern to find all `process.env` and * `import.meta.env` accesses that are not covered by a configured env prefix * (`VITE_` by default) or the explicit allowlist. * * Each reported access carries the 1-based line and column of its variable name. * * @param sourceCode - The raw source text of the module to analyse. * @param allowClientAccess - The set of variable names explicitly allowed on the client. * @param envPrefixes - Prefixes Vite exposes to the client (resolved `envPrefix`). * Defaults to {@link DEFAULT_ENV_PREFIXES} (`VITE_`). * @returns All environment variable accesses that are not permitted on the client side. */ declare function scanModuleSource(sourceCode: string, allowClientAccess: Set, envPrefixes?: readonly string[]): EnvAccess[]; //#endregion export { scanModuleSource }; //# sourceMappingURL=scanner.d.ts.map