UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

16 lines • 1.08 kB
import type { RedirectResult } from '../../../../context/session_context.ts'; import type { ByteSource } from '../../../../io/types.ts'; import type { SessionView } from '../../../../view/types.ts'; import type { SessionState } from '../../../session/session.ts'; import type { BuiltinCall, ExecuteStringFn } from '../types.ts'; /** * Read input into an indexed array, one element per line. `-d C` splits * on `C`; `-t` strips the delimiter; `-n N` bounds, `-s N` skips, `-O I` * places (and keeps the array's other elements); `-C CB`/`-c Q` calls * back. The array is `MAPFILE` by default; a scalar becomes an array, an * associative one is refused. */ export declare function handleMapfile(args: string[], session: SessionState, stdin: ByteSource | null, executeFn: ExecuteStringFn, state?: SessionView | null, cmd?: string, signal?: AbortSignal): Promise<RedirectResult>; /** The `mapfile` / `readarray` arm; the head word is what diagnostics name. */ export declare function mapfileBuiltin(call: BuiltinCall): Promise<RedirectResult>; //# sourceMappingURL=mapfile.d.ts.map