15 lines
585 B
TypeScript
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 {};
|