site-panzai/node_modules/@vercel/nft/out/analyze.d.ts
2026-11-13 13:57:04 +01:00

15 lines
585 B
TypeScript

import { Job } from './node-file-trace';
import { ConditionalValue, StaticValue } from './utils/types';
export interface AnalyzeResult {
assets: Set<string>;
deps: Set<string>;
imports: Set<string>;
isESM: boolean;
}
type KnownBindings = Record<string, {
shadowDepth: number;
value: StaticValue | ConditionalValue;
}>;
export declare function createStaticEvalVars(knownBindings: KnownBindings, globals: Record<string, unknown>, importMetaUrl: string): any;
export default function analyze(id: string, code: string, job: Job): Promise<AnalyzeResult>;
export {};