import { type Database } from "./database.js"; export type SetSessionUnattendedResult = { status: "updated"; } | { status: "not_found"; } | { status: "archived"; }; /** * Record an explicit unattended choice for a chat (its switch or the API). It * applies from the next turn and a person's later message never changes it. * Callers authorize the request. */ export declare function setSessionUnattendedSetting(db: Database, input: { workspaceId: string; sessionId: string; unattended: boolean; }): Promise; /** * A person wrote in the chat: an automation's unattended default ends and the * chat runs attended from the next turn. An explicit choice is left alone. * Returns whether the setting changed. */ export declare function endSessionUnattendedDefault(db: Database, input: { workspaceId: string; sessionId: string; }): Promise; /** `endSessionUnattendedDefault` inside a caller's workspace-scoped transaction. */ export declare function endSessionUnattendedDefaultInTransaction(tx: Database, input: { workspaceId: string; sessionId: string; }): Promise;