/** * [WHO]: isInTeammateContext(), submitPlanToLeader(), checkPlanApproval() * [FROM]: No external dependencies (team extension integration) * [TO]: Consumed by exit-plan-mode-tool.ts * [HERE]: extensions/builtin/plan/teammate-approval.ts - teammate plan approval flow * * @deprecated MVP implementation — uses filesystem-based mailbox (team-mail dir). * TODO(v2): Replace with TeamMailbox.post() from team extension when stable. */ /** * Check if the current context is a teammate. * This is a simplified check - in full implementation this would * integrate with the team extension's TeamRuntime. */ export declare function isInTeammateContext(): boolean; /** * Get the current teammate identity. */ export declare function getTeammateIdentity(): { id: string; name: string; } | null; /** * Get the team name if in a team context. */ export declare function getTeamName(): string | null; /** * Submit a plan approval request to the leader. * @deprecated MVP: uses filesystem-based mailbox. Replace with TeamMailbox.post(). */ export declare function submitPlanToLeader(planFilePath: string, planContent: string): Promise<{ requestId: string; status: "submitted"; }>; /** * Check if a plan approval has been received. */ export declare function checkPlanApproval(requestId: string): Promise<{ approved: boolean; feedback?: string; } | null>; /** * Format the message shown when plan is submitted to leader. */ export declare function formatPlanSubmittedMessage(requestId: string, planFilePath: string): string; /** * Format the message shown when waiting for leader approval. */ export declare function formatWaitingForApprovalMessage(requestId: string): string;