/** * The terminal's reasoning visibility picker. * * This is deliberately separate from {@link ../reasoning.ts}: `/reasoning` edits * the model selection, while this command edits only the reader's projection. * @module dshline/thinking */ import type { Context } from '@deepseek-ai/cordis'; import type { SelectChoice } from './select.ts'; /** The compact vocabulary accepted after `/thinking`. */ export declare const THINKING_VALUES: readonly [{ readonly value: 'on'; readonly note: 'Show model reasoning as it arrives'; }, { readonly value: 'off'; readonly note: 'Hide reasoning; model behavior is unchanged'; }]; /** * Set reasoning visibility from a direct argument or picker. * @param ctx - context carrying the picker slot registry. * @param visible - current visibility value. * @param argument - text after `/thinking`; empty opens the picker. * @param apply - changes the owning window and current stream. * @returns the resulting visibility, or undefined when dismissed/rejected. */ export declare function pickThinking(ctx: Context, visible: boolean, argument: string, apply: (next: boolean) => void): Promise<'shown' | 'hidden' | undefined>; /** * Whether a direct argument is accepted by `/thinking`. * @param argument - text after the command. * @returns true for an empty argument or one accepted direct value. */ export declare function validThinkingArgument(argument: string): boolean; /** * Build the acknowledgement for a visibility choice. * @param visibility - the chosen presentation state. * @returns a concise terminal acknowledgement. */ export declare function thinkingAcknowledgement(visibility: 'shown' | 'hidden'): string; /** * Expose the picker choices for focused UI tests. * @returns the labels and descriptions used by the picker. */ export declare function thinkingChoices(): readonly SelectChoice[]; //# sourceMappingURL=thinking.d.ts.map