import { G as Global } from './index-Czpf92NK.mjs'; import { Token, JSRuntimeFn, JSRuntimeClass } from './keywords/index.mjs'; import { LikeModule } from './libs/types.mjs'; import { Literal, Expr } from './node/index.mjs'; interface VineIOModule extends LikeModule { /** * @description: 判断文件是否存在 */ exists: (this: Environment, pathName: Token) => Literal; /** * @description: 读取文件内容 */ read: (this: Environment, pathName: Token) => Literal; /** * @description: 写入文件内容 */ write: (this: Environment, pathName: Token, content: Token) => void; /** * @description: 删除文件 */ delete: (this: Environment, pathName: Token) => void; /** * @description: 创建文件夹 */ mkdir: (this: Environment, pathName: Token) => void; /** * @description: 删除文件夹 */ deleteDir: (this: Environment, pathName: Token) => void; /** * @description: 获取文件信息 */ info: (this: Environment, pathName: Token) => void; } declare const _default$1: VineIOModule; interface VinePathModule extends LikeModule { /** * @description: 获取当前环境文件路径 * @return {*} */ file: (this: Environment) => void; /** * @description: 获取当前环境文件目录 * @return {*} */ dir: (this: Environment) => void; /** * @description: 获取当前环境文件扩展名 * @return {*} */ extname: (this: Environment, ...args: Token[]) => void; /** * @description: 解析路径 * @return {*} */ resolve: (this: Environment, ...args: Token[]) => void; /** * @description: 拼接路径 * @return {*} */ join: (this: Environment, ...args: Token[]) => void; /** * @description: 判断路径是否为绝对路径 * @return {*} */ isAbsolute: (this: Environment, ...args: Token[]) => void; } declare const _default: VinePathModule; interface VineDateModule extends LikeModule { __obj: Date; getObj: Date; reset?: () => void; now: (this: Environment) => void; getDate?: (this: Environment) => void; getDay?: (this: Environment) => void; getFullYear?: (this: Environment) => void; getHours?: (this: Environment) => void; getMilliseconds?: (this: Environment) => void; getMinutes?: (this: Environment) => void; getMonth?: (this: Environment) => void; getSeconds?: (this: Environment) => void; getTime?: (this: Environment) => void; getTimezoneOffset?: (this: Environment) => void; getUTCDate?: (this: Environment) => void; getUTCDay?: (this: Environment) => void; getUTCFullYear?: (this: Environment) => void; getUTCHours?: (this: Environment) => void; getUTCMilliseconds?: (this: Environment) => void; getUTCMinutes?: (this: Environment) => void; getUTCMonth?: (this: Environment) => void; getUTCSeconds?: (this: Environment) => void; toJSON?: (this: Environment) => void; toDateString?: (this: Environment) => void; toISOString?: (this: Environment) => void; toLocaleDateString?: (this: Environment) => void; toLocaleString?: (this: Environment) => void; toLocaleTimeString?: (this: Environment) => void; toTimeString?: (this: Environment) => void; toUTCString?: (this: Environment) => void; } declare const date: VineDateModule; interface TokenExEnvironment extends Omit { value: Environment; } declare function UseEnvFn(env: Environment): TokenExEnvironment; declare const ModuleList: { "vine:date": VineDateModule; "vine:path": VinePathModule; "vine:io": VineIOModule; "vine:global": typeof Global; }; declare class Environment { Variable: Map; private staticVariable; private parent?; private expose; private asMap; filePath?: string; constructor(parent?: Environment); link(name: string, env: Environment): void; setAsMap(name: string, as: string): void; setFilePath(filePath: string): void; getFilePath(): string; setExpose(expose: Literal): void; getExpose(): Set; setup(): void; registerGlobalModule(name: string, env: Environment): void; resolveVariableEnv(name: string): Environment | undefined; declareVariable(name: Literal, value: Expr | JSRuntimeFn, is_static?: boolean): Map; getVariable(name: Literal): JSRuntimeClass | Expr | TokenExEnvironment | JSRuntimeFn; setVariable(name: Literal, value: Expr): Map; deleteVariable(name: Literal): boolean; replaceVariable(name: Literal, value: Expr): void; } export { Environment as E, ModuleList as M, type TokenExEnvironment as T, UseEnvFn as U, type VineIOModule as V, _default$1 as _, _default as a, type VinePathModule as b, type VineDateModule as c, date as d };