import type { CallStack } from '../../../../shell/call_stack.ts'; import type { Session } from '../../../session/session.ts'; import type { BuiltinCall, Result } from '../types.ts'; export declare function loopLevels(args: readonly string[]): number; /** `true`: succeed and print nothing. */ export declare function handleTrue(): Result; /** `:`: succeed and print nothing (the null command). */ export declare function handleColon(): Result; /** `false`: fail with 1 and print nothing. */ export declare function handleFalse(): Result; /** Return from a function or sourced script, with bash's checks. */ export declare function handleReturn(args: readonly string[], session: Session, callStack?: CallStack | null): Result; /** Exit the shell, with bash's argument checks. */ export declare function handleExit(args: readonly string[], session: Session): Result; /** The `true` arm. */ export declare function trueBuiltin(_call: BuiltinCall): Promise; /** The `:` arm. */ export declare function colonBuiltin(_call: BuiltinCall): Promise; /** The `false` arm. */ export declare function falseBuiltin(_call: BuiltinCall): Promise; /** The `return` arm. */ export declare function returnBuiltin(call: BuiltinCall): Promise; /** The `exit` arm. */ export declare function exitBuiltin(call: BuiltinCall): Promise; /** The `break` arm: unwinds the enclosing loops by throwing. */ export declare function breakBuiltin(call: BuiltinCall): Promise; /** The `continue` arm: unwinds to the next iteration by throwing. */ export declare function continueBuiltin(call: BuiltinCall): Promise; //# sourceMappingURL=control.d.ts.map