import { type ToolRun } from '../../lib/api'; export interface QaBriefActor { label: string; labelKey?: string; role?: string | null; /** The account's own sign-in form (2026-11). Null = the run's form. */ loginMode?: string | null; username?: string | null; password?: string | null; email?: string | null; hasMailbox?: boolean; isPrimary?: boolean; /** Browser window for this account (2026-11, one window per identity). */ sessionId?: string | null; } /** * QA account block for the run prompt (2026-11, pure — unit-tested). * * The run's decrypted secrets carry every account it may sign in as. A single * legacy login renders the historical single-account block verbatim; two or * more accounts render the full roster with one window per identity * (sessionId per account, stamped at dispatch) and the switch procedure * (invite as the admin, read the invitee's own inbox, save a forced * password immediately). `clearSession` is only for making a window signed * out — never for switching accounts. * * Secrets go into the PROMPT ONLY, never `brief.md` on disk — the caller owns * that discipline; this function only formats. */ export declare function buildQaAccountBlock(params: Record, secrets: { username?: string | null; password?: string | null; actors?: QaBriefActor[] | null; } | null): string; /** Markdown brief the agent reads at the top of the session. */ export declare function buildBrief(run: ToolRun, projectName: string): string; /** Tool-specific work instructions appended to the harness prompt. */ export declare function buildInstructions(run: ToolRun, folderBase: string): string; export declare function cmdResearch(flags: Map): Promise; /** Resolves the linked working dir for a project (falls back to cwd). */ export declare function researchHome(): string;