UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

19 lines • 1.2 kB
import type { RedirectResult } from '../../context/session_context.ts'; import type { CallStack } from '../../shell/call_stack.ts'; import type { ParseScope } from '../../shell/parse/scope.ts'; import { type TSNodeLike } from '../../shell/types.ts'; import type { EvaluationContext } from '../evaluation.ts'; import type { ExecuteFn } from '../expand/types.ts'; import type { Namespace } from '../mount/namespace/namespace.ts'; import type { MountRegistry } from '../mount/registry.ts'; /** * Execute one declaration statement (export/local/declare/readonly). * * The executor only reads the operands: it expands them and sorts out the * option letters, keeping the words and the staged array literals in the * order typed, then hands them to the builtin handler that owns the * keyword, which marks each operand with the attribute letters (`-x`, * `-i`, `-l`) at its place, so `declare -rx X=1` keeps both marks. */ export declare function executeDeclaration(node: TSNodeLike, context: EvaluationContext, executeFn: ExecuteFn, registry: MountRegistry, namespace: Namespace, callStack: CallStack | null, parser?: ParseScope): Promise<RedirectResult>; //# sourceMappingURL=declaration.d.ts.map