import type { ExtensionContext } from "@earendil-works/pi-coding-agent"; import type { NotesContext } from "../../notes/context.js"; import { type NoteRow, type Scope } from "../../notes/index.js"; declare const NOTES_HOMES: readonly [{ readonly scope: "session"; readonly label: "this session"; }, { readonly scope: "project"; readonly label: "@project"; }, { readonly scope: "human"; readonly label: "@human"; }, { readonly scope: "agent"; readonly label: "@self"; }, { readonly scope: "model"; readonly label: "@model"; }]; export type NotesHome = (typeof NOTES_HOMES)[number]; export type NotesLoader = (ctx: ExtensionContext, scope: Scope) => NoteRow[] | Promise; export type NotesSnapshot = { /** Wall-clock instant captured when this boot began; rendering never consults Date.now(). */ readonly openedAt: number; readonly homes: ReadonlyMap; readonly unavailable: readonly NotesHome[]; }; /** * Acquire the five homes once for one boot. Only filesystem-style errno failures are isolated; * malformed note data and unrelated construction errors remain visible to the caller. */ export declare function loadNotesSnapshot(ctx: ExtensionContext, loadHome?: NotesLoader, identity?: NotesContext): Promise; export {};