import { TeamshareApi } from '../../lib/api'; import type { LogFn } from '../utils'; /** Resolve the working folder for a session (project guard). */ export declare function resolveWorkingDir(flags: Map, projectId: string | null | undefined, log: LogFn): string | null; /** Pick the agent's next assigned task from inbox. */ export declare function pickNextTask(api: TeamshareApi, agentId: string, log: (text: string, level?: 'stdout' | 'stderr') => void): Promise;