import type { SessionView } from '../../ops/types.ts'; import type { CallStack } from '../../shell/call_stack.ts'; import type { ByteSource, IOResult } from '../../io/types.ts'; import type { Session } from '../session/session.ts'; import type { TSNodeLike } from '../../shell/types.ts'; export type ExecuteFn = (command: string, opts: { sessionId: string; stdin?: ByteSource | null; }) => Promise; export declare function foldedWhitespace(node: TSNodeLike): string; export declare function unescapeHeredoc(text: string): string; export declare function expandArith(tsNode: TSNodeLike, session: Session, executeFn: ExecuteFn, callStack: CallStack | null, view?: SessionView): Promise; export declare function expandNode(tsNode: TSNodeLike, session: Session, executeFn: ExecuteFn, callStack?: CallStack | null, view?: SessionView): Promise; /** * Expand a node, marking the glob characters quoting made literal. * * Same string as `expandNode`, except that a glob character quoting * neutralized travels under its own mark. Only pathname * expansion cares, so this is what `expandWords` reads while every other * caller takes the unmarked wrapper above. */ export declare function expandNodeMarked(tsNode: TSNodeLike, session: Session, executeFn: ExecuteFn, callStack?: CallStack | null, view?: SessionView): Promise; //# sourceMappingURL=node.d.ts.map