CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
index.d.mts54 linesDownload Raw Back to dist
1import { O as Options, P as ProxifiedModule, a as Proxified, G as GenerateOptions } from './shared/magicast.54e2233d.mjs';2export { C as CodeFormatOptions, I as ImportItemInput, L as Loc, b as ParsedFileNode, d as ProxifiedArray, g as ProxifiedArrowFunctionExpression, e as ProxifiedFunctionCall, i as ProxifiedIdentifier, m as ProxifiedImportItem, l as ProxifiedImportsMap, j as ProxifiedLogicalExpression, k as ProxifiedMemberExpression, f as ProxifiedNewExpression, h as ProxifiedObject, n as ProxifiedValue, c as ProxyBase, o as ProxyType, T as Token, p as detectCodeFormat } from './shared/magicast.54e2233d.mjs';3import { Node } from '@babel/types';4export { Node as ASTNode } from '@babel/types';5 6declare function parseModule<Exports extends object = any>(code: string, options?: Options): ProxifiedModule<Exports>;7declare function parseExpression<T>(code: string, options?: Options): Proxified<T>;8declare function generateCode(node: {9    $ast: Node;10} | Node | ProxifiedModule<any>, options?: GenerateOptions): {11    code: string;12    map?: any;13};14declare function loadFile<Exports extends object = any>(filename: string, options?: Options): Promise<ProxifiedModule<Exports>>;15declare function writeFile(node: {16    $ast: Node;17} | Node, filename: string, options?: Options): Promise<void>;18 19interface MagicastErrorOptions {20    ast?: Node;21    code?: string;22}23declare class MagicastError extends Error {24    rawMessage: string;25    options?: MagicastErrorOptions;26    constructor(message: string, options?: MagicastErrorOptions);27}28 29declare const builders: {30    /**31     * Create a function call node.32     */33    functionCall(callee: string, ...args: any[]): Proxified;34    /**35     * Create a new expression node.36     */37    newExpression(callee: string, ...args: any[]): Proxified;38    /**39     * Create a proxified version of a literal value.40     */41    literal(value: any): Proxified;42    /**43     * Parse a raw expression and return a proxified version of it.44     *45     * ```ts46     * const obj = builders.raw("{ foo: 1 }");47     * console.log(obj.foo); // 148     * ```49     */50    raw(code: string): Proxified;51};52 53export { GenerateOptions, MagicastError, type MagicastErrorOptions, Proxified, ProxifiedModule, builders, generateCode, loadFile, parseExpression, parseModule, writeFile };54 
basant307/AI_Governance_Project · CoolFace