/** * The ledger (growth record) view — the workbench's seventh tab: the * transparent record of the research process, rendered as an archive-style * timeline (time window × project scope, newest first) above two printed * sheets of the same window — the one-click progress report and the * cognitive brief (the DDM-lite roadbook with the user's L2 journal box * beneath it). All reads flow through the controller's ledger slice; these * components own only the window/scope selection and the download/copy * actions. * @module dsh-client-ui-mimir/client/LedgerView */ import type { ResearchEventFilter, ResearchGenerateBriefOptions, ResearchProgressReportOptions } from 'dsh-mimir/types'; import type { ResearchBriefView, ResearchDigestSlice, ResearchEurekaSlice, ResearchEvidenceGraphSlice, ResearchFailureView, ResearchForagingSlice, ResearchLedgerView, ResearchMomentsSlice, ResearchReportView, ResearchWorktreeSlice } from './controller.ts'; import type { ResearchT } from './view-common.ts'; import { type EvidenceGraphRequest } from './evidence-graph-view.ts'; /** * @param props - the ledger slice, the report slice, the brief slice, the * project scope input, the controller verbs, and copy. * @returns the ledger view. */ export declare function LedgerView({ ledger, report, brief, worktree, foraging, moments, evidence, eureka, digest, selectedProjectId, loadLedger, generateReport, generateBrief, addJournal, ensureWorktree, refreshWorktree, setMainline, setIdeaParent, adoptIdea, closeIdea, ensureForaging, refreshForaging, ensureMoments, refreshMoments, declineMoment, loadEvidenceGraph, refreshEvidenceGraph, retractEvidence, ensureEureka, ensureDigest, refreshDigest, generateDigest, setEureka, pinMoment, t, }: { readonly ledger: ResearchLedgerView; readonly report: ResearchReportView; readonly brief: ResearchBriefView; readonly worktree: ResearchWorktreeSlice; readonly foraging: ResearchForagingSlice; readonly moments: ResearchMomentsSlice; readonly evidence: ResearchEvidenceGraphSlice; readonly eureka: ResearchEurekaSlice; readonly digest: ResearchDigestSlice; readonly selectedProjectId: string | null; readonly loadLedger: (filter: ResearchEventFilter) => void; readonly generateReport: (options: ResearchProgressReportOptions) => Promise; readonly generateBrief: (options: ResearchGenerateBriefOptions) => Promise; readonly addJournal: (text: string, projectId: string | null, refs?: { ideaId?: string | undefined; valence?: number | undefined; arousal?: number | undefined; }) => Promise; /** Load the worktree once, on the ledger view's first open. */ readonly ensureWorktree: () => void; /** Re-fetch the worktree (the card's refresh button). */ readonly refreshWorktree: () => void; /** Move the mainline ref (one user declaration). */ readonly setMainline: (lineId: string) => Promise; /** Declare (or clear) one derivation edge. */ readonly setIdeaParent: (ideaId: string, parentIdeaId: string | null) => Promise; /** Close one idea lane as a documented No. */ readonly adoptIdea: (ideaId: string) => Promise; readonly closeIdea: (ideaId: string, reason: string) => Promise; /** Load the foraging layer once, on the ledger view's first open. */ readonly ensureForaging: () => void; /** Re-fetch the foraging layer (the card's refresh button). */ readonly refreshForaging: () => void; /** Load the moments timeline once, on the ledger view's first open. */ readonly ensureMoments: () => void; /** Re-fetch the moments timeline (the card's refresh button). */ readonly refreshMoments: () => void; /** Decline one moment candidate (seen and refused). */ readonly declineMoment: (targetEventId: string) => Promise; /** Load the evidence graph once, on the ledger view's first open. */ /** Load the evidence graph for one ledger window (the ledger's authoritative filter). */ readonly loadEvidenceGraph: (request: EvidenceGraphRequest) => void; /** Re-fetch the evidence graph (the card's refresh button, or after a write). */ readonly refreshEvidenceGraph: () => void; /** Retract one evidence edge by dedupKey (the panel's human final say). */ readonly retractEvidence: (dedupKey: string, reason?: string | undefined) => Promise; /** Load the digest once, on the ledger view's first open (active push). */ readonly ensureDigest: () => void; /** Load the researcher-declared Eureka records once (Evidence Graph markers). */ readonly ensureEureka: () => void; /** Re-fetch the digest at its current tier/lang. */ readonly refreshDigest: () => void; /** Generate the digest at one tier/language. */ readonly generateDigest: (tier: 'weekly' | 'monthly' | 'project', lang: 'zh' | 'en') => Promise; /** Declare one Eureka (the researcher's own named milestone). */ readonly setEureka: (ideaId: string | undefined, projectId: string | undefined, title: string) => Promise; /** Pin (or unpin) one moment. */ readonly pinMoment: (targetEventId: string, note?: string | undefined) => Promise; readonly t: ResearchT; }): import("react").JSX.Element; //# sourceMappingURL=LedgerView.d.ts.map