import type { RpcMessage } from "./message";

export interface SessionSummary {
	path: string;
	name?: string;
	firstMessage?: string;
	messageCount?: number;
	modified?: string;
	created?: string;
	pinned?: boolean;
}

export interface SessionHistoryPayload {
	session?: { id?: string | number; name?: string };
	messages?: RpcMessage[];
	error?: string;
}

export interface NewSessionResponse {
	sessionFile?: string;
	error?: string;
}
