import type { Api } from "../../../api.js"; import { type LocalTurnUsage } from "./usage.js"; /** * Persist the turn and what it spent. Credits for a credits connector are * billed on the sandbox proxy from the forwarded Anthropic response; this * call writes history. `costUsd` is stored on the message, not charged. * * History is best effort: a failed ingest is reported but never turns a reply * the user already read into a failed turn. */ export declare function ingestTurn(input: { api: Api; chatUuid: string; agentUuid?: string; connectorUuid: string; integrationSlug: string; languageModelSlug: string; question: string; answer: string; usage: LocalTurnUsage; cancelled?: boolean; turnOwnerId?: string; onNotice?: (message: string) => void; }): Promise; //# sourceMappingURL=ingest.d.ts.map