import type { ClientContext } from "@cline/shared"; import { type SessionSource as SessionSourceValue } from "../types/common"; export interface SessionHistoryOriginMetadata { mode: string; version?: string; /** * The trigger that initiated the session, when it is not a direct user * action. E.g., the `source` label of the automation spec that started a * scheduled run. */ trigger?: string; } export declare function resolveClientSessionSource(client: ClientContext | undefined): SessionSourceValue | undefined; export declare function readSessionHistoryOriginMetadata(metadata: Record | null | undefined): SessionHistoryOriginMetadata | undefined; export declare function withSessionHistoryOriginMetadata(metadata: Record | null | undefined, origin: { mode?: string; version?: string; trigger?: string; }): Record;