/** The loose ESTree shape Rollup produces, which adds `start`/`end` offsets. */ export interface AstNode { type: string; start: number; end: number; [property: string]: any; } export interface StaticValue { value: any; } /** * Folds the constant expressions Dojo code commonly uses to build dependency * arrays, e.g. `["a", "b"]`, `"a,b".split(",")` and `"pkg/" + "mod"`. * Returns `{ value }` or `undefined` when the expression is not static. */ export declare function evalStatic(node: AstNode | null | undefined): StaticValue | undefined; export interface AmdInfo { isAmd: boolean; contextDeps: string[]; contextAsyncDeps: string[]; globalAsyncDeps: string[]; cjsDeps: string[]; } export declare function analyze(ast: AstNode): AmdInfo;