UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

17 lines • 972 B
import type { ExecuteFn } from './types.ts'; import type { EvaluationContext } from '../evaluation.ts'; import type { SessionView } from '../../view/types.ts'; import type { CallStack } from '../../shell/call_stack.ts'; import type { TSNodeLike } from '../../shell/types.ts'; /** * Expand one pattern word into the matcher's glob dialect, as case patterns, * the right side of `[[ == ]]` and quoted parameter-expansion operands read * it (`patternPieces`). */ export declare function expandPattern(tsNode: TSNodeLike, context: EvaluationContext, executeFn: ExecuteFn, callStack?: CallStack | null, view?: SessionView): Promise<string>; /** * Expand the right side of `[[ =~ ]]` into a POSIX extended regex, read as a * pattern word (`patternPieces`). */ export declare function expandRegex(tsNode: TSNodeLike, context: EvaluationContext, executeFn: ExecuteFn, callStack?: CallStack | null, view?: SessionView): Promise<string>; //# sourceMappingURL=pattern.d.ts.map