/**
 * Chat Commands — shared private helpers used by more than one handler group.
 *
 * These were module-local helpers/consts/interfaces in chat-commands.ts. They
 * are exported here only so the split read/write/debug/scope sub-modules can
 * import them; they are NOT part of the public chat-commands surface (except
 * READ_CHAT_PROVIDER_EVAL_TIMEOUT_MS and buildSendInputSignature, which the
 * chat-commands barrel re-exports).
 */
import type { CommandHelpers } from './handler.js';
import type { CliAdapter } from '../cli-adapter-types.js';
import { type InputEnvelope, type ProviderModule } from '../providers/contracts.js';
import type { ProviderInstance } from '../providers/provider-instance.js';
import type { ChatMessage } from '../types.js';
import type { SessionTransport } from '../shared-types.js';
export declare const READ_CHAT_PROVIDER_EVAL_TIMEOUT_MS = 25000;
export interface ApprovalSelectableInstance extends ProviderInstance {
    recordApprovalSelection?(buttonText: string): void;
}
export interface RuntimeChatMessageMerger extends ProviderInstance {
    mergeRuntimeChatMessages?(messages: ChatMessage[]): ChatMessage[];
    recordAcknowledgedUserInput?(input: InputEnvelope | string): void;
}
export declare function getCurrentProviderType(h: CommandHelpers, fallback?: string): string;
export declare function getCurrentManagerKey(h: CommandHelpers): string;
export declare function getTargetedCliAdapter(h: CommandHelpers, args: any, providerType?: string): CliAdapter | null;
export declare function getTargetInstance(h: CommandHelpers, args: any): ApprovalSelectableInstance | null;
export declare function getTargetTransport(h: CommandHelpers, provider?: ProviderModule): SessionTransport | null;
export declare function isCliLikeTransport(transport: SessionTransport | null): boolean;
export declare function isExtensionTransport(transport: SessionTransport | null): boolean;
export declare function buildSendInputSignature(input: InputEnvelope): string;
export declare function parseMaybeJson(value: any): any;
export declare function getChatMessageSignature(message: ChatMessage | null | undefined): string;
