/** * Build the shell command string for the opencode-cli provider. * Accepts a pre-combined file written by the dispatcher and passes it as a * single `@file` reference so opencode reads it directly. */ export declare function buildOpenCodeCliCommand(combinedFile: string, sessionId?: string, model?: string, sessionName?: string): string; /** * List all OpenCode sessions for this workspace directory (newest first, capped at 20). * Uses `opencode session list --format json`. Returns empty array on timeout/error. */ export declare function listOpenCodeSessions(cwd: string): Promise>; /** * Get the latest OpenCode session ID for this workspace directory by querying * `opencode session list`. No tokens consumed — purely a metadata read. * * @param notBefore Epoch-ms timestamp — ignore sessions created before this * time (used after "New Session" to skip the old session). */ export declare function getLatestOpenCodeSessionId(cwd: string, log: (msg: string) => void, notBefore?: number): Promise; /** * Run `/compact` on an existing OpenCode session to summarise conversation * history and free up context window space. Returns a promise that resolves * when the compact command exits (success or failure — caller decides whether * to treat an error as fatal). */ export declare function runOpenCodeCompact(sessionId: string, cwd: string, log: (msg: string) => void): Promise;