/** Late bindings so dashboard ↔ conversation do not import each other. */ import type { HistoryLoadResult } from "../../stores/session"; export type OpenConversation = ( fid: string, pid?: string | null, options?: { resetHistory?: boolean }, ) => Promise | void; /** The project override exists so an empty project creates its conversation * in the project just opened, not in whichever one is active by the time the * shared creation promise settles. */ export type NewSession = (projectId?: string) => Promise | void; export const binds = { openConversation: (() => {}) as OpenConversation, newSession: (async () => {}) as NewSession, loadDashboard: (async () => {}) as () => Promise | void, startDashPoll: (() => {}) as () => void, stopDashPoll: (() => {}) as () => void, renderDashProjects: (() => {}) as () => void, renderProjMenu: (() => {}) as () => void, renderSessions: (() => {}) as () => void, showDashboard: (() => {}) as () => void, showWorkspace: (() => {}) as () => void, };