import type { KeybindingsManager, OverlayOptions, TUI } from '@earendil-works/pi-tui'; import type { TuiContextUsage, TuiCustomComponent, TuiCustomFactory, TuiCustomOptions, TuiModelInfo, TuiModelRegistry, TuiNotifyLevel, TuiReadonlySessionManager, TuiReasoningLevel, TuiThinkingLevel, TuiVerboseLevel } from '../../extensions/types/tui.js'; import type { ChatLog } from '../components/chat-log.js'; import type { TuiState } from '../tui-types.js'; export declare const STALE_EXTENSION_CONTEXT_MESSAGE = "This extension ctx is stale after session replacement or reload. Do not use a captured pi or command ctx after ctx.newSession(), ctx.fork(), ctx.switchSession(), or ctx.reload(). For newSession, fork, and switchSession, move post-replacement work into withSession and use the ctx passed to withSession. For reload, do not use the old ctx after await ctx.reload()."; export declare function boundedWidgetLines(lines: string[]): string[]; export declare function createEmptySessionManager(cwd: string, sessionKey: string): TuiReadonlySessionManager; export declare function createDefaultModelRegistry(): TuiModelRegistry; export declare function resolveCustomOverlayOptions(component: TuiCustomComponent, customOpts?: TuiCustomOptions): OverlayOptions | undefined; export declare function invokeCustomFactory(factory: TuiCustomFactory, tui: TUI, keybindings: KeybindingsManager | undefined, done: (result: T) => void): TuiCustomComponent | Promise; export declare function disposeComponent(component: { dispose?(): void; } | undefined): void; export declare function notifyInChatLog(chatLog: ChatLog, tui: TUI, message: string, level?: TuiNotifyLevel): void; export declare function isTuiIdle(state: Partial): boolean; export declare function hasPendingTuiMessages(state: Partial): boolean; export declare function getTuiContextUsage(state: Partial): TuiContextUsage | undefined; export declare function getTuiModelInfo(state: Partial): TuiModelInfo | undefined; export declare function getTuiThinkingLevel(state: Partial): TuiThinkingLevel | undefined; export declare function getTuiReasoningLevel(state: Partial): TuiReasoningLevel | undefined; export declare function getTuiVerboseLevel(state: Partial): TuiVerboseLevel | undefined;