import type { ConfigureErrorHandlingEpilogue, ConfigureExecutionContext } from '@black-flag/core'; import type { ExtendedDebugger, ExtendedLogger } from 'rejoinder'; import type { StandardExecutionContext } from "./extensions.js"; /** * @see {@link makeStandardConfigureExecutionContext} */ export type MakeStandardConfigureExecutionContextOptions = { /** * The generic logging function used whenever the CLI wants to send text to * stdout. */ rootGenericLogger: ExtendedLogger; /** * The generic logging function used whenever the CLI wants to send text to * stderr. */ rootDebugLogger: ExtendedDebugger; /** * If `true`, support for Listr2 tasks will be enabled for this program. * * Note that `taskManager` is created by calling rejoinder's * `createListrManager()` with no arguments. To provide custom overrides, you * must call this function manually and reassign `ExecutionContext`'s * `taskManager` accordingly. * * @default false */ withListr2Support?: boolean; }; /** * Returns a {@link ConfigureExecutionContext} instance considered standard * across [Xunnamius](https://github.com/Xunnamius)'s CLI projects. */ export declare function makeStandardConfigureExecutionContext(options: MakeStandardConfigureExecutionContextOptions & { withListr2Support?: false; }): Promise>; export declare function makeStandardConfigureExecutionContext(options: MakeStandardConfigureExecutionContextOptions & { withListr2Support: true; }): Promise>; export declare function makeStandardConfigureExecutionContext(options: MakeStandardConfigureExecutionContextOptions): Promise>; /** * Returns a {@link ConfigureErrorHandlingEpilogue} instance considered standard * across [Xunnamius](https://github.com/Xunnamius)'s CLI projects. */ export declare function makeStandardConfigureErrorHandlingEpilogue(): ConfigureErrorHandlingEpilogue;