import type { Session } from '../../../session/session.ts'; import type { AliasMark } from './types.ts'; import type { BuiltinCall, Result } from '../types.ts'; /** Define or print aliases. */ export declare function handleAlias(args: string[], session: Session, mark: AliasMark): Result; /** Remove aliases: the named ones, or all under `-a`. */ export declare function handleUnalias(args: string[], session: Session): Result; /** The alias text a command word expands to, or null. */ export declare function aliasValue(session: Session, name: string, mark: AliasMark): string | null; /** * The command line an aliased head word rewrites to, or null. The value * replaces the word; a value ending in a blank asks for the next word * to be checked too (bash's `alias sudo='sudo '` rule); the result is a * fresh line the parser reads again. */ export declare function aliasCommandText(session: Session, name: string, rest: string, mark: AliasMark): string | null; /** The `alias` arm; the row marks where the definition was made. */ export declare function aliasBuiltin(call: BuiltinCall): Promise; /** The `unalias` arm. */ export declare function unaliasBuiltin(call: BuiltinCall): Promise; //# sourceMappingURL=alias.d.ts.map