export declare function extractAskUserQuestions(data: any, sessionId: string): Array<{ toolUseId: string | null; questions: any[]; sessionId: string; }>; export declare function formatAssistantEvent(data: any): string | null; export declare function formatUserEvent(data: any): string | null; export declare function formatResultEvent(data: any): string; export declare function formatEvent(data: any): string | null; export declare function buildPrompt(userMessage: string, files: any[]): string; /** Merge a brief epilogue with a substantially longer earlier message (e.g. an orient briefing) so Slack gets the real content. * Triggers only when final is both absolutely short (<300) AND relatively short (<50% of longest). */ export declare function mergeSubstantialOutput(finalOutput: string | null, longestOutput: string | null): string | null; export type ExtractResultOutcome = { resolved: true; value: any; error?: undefined; } | { resolved: false; error: Error; value?: undefined; }; export declare function extractResult(resultData: any, effectiveSessionId: string, killed: boolean, code: number, stderr: string, planFilePath: string | null, enteredPlanMode: boolean, exitedPlanMode: boolean, askUserQuestions: any[], finalOutput: string | null, longestOutput: string | null): ExtractResultOutcome; export declare const PLAN_DIRS: string[]; export declare function isPlanFilePath(filePath: unknown): boolean; export declare function setActivePlanFile(sessionId: string, path: string): void; export declare function clearActivePlanFile(sessionId: string): void; export declare function getCurrentPlanFilePath(sessionId: string): string | null;