/** * Structural diff of the generated `.pikku` meta between two points in time — * used by `pikku all --diff` to report what a codegen run added/removed/changed * (functions, wirings, workflows, emails, …). The snapshot is a plain in-memory * copy of the meta files, so diffing is a couple of small JSON reads, not a * second inspection pass. Only user-visible buildable surfaces are included; * plumbing (secrets/variables/middleware/permissions) is intentionally omitted. */ export type MetaDiffCategoryName = 'functions' | 'http' | 'workflow' | 'email' | 'scheduler' | 'queue' | 'channel' | 'trigger' | 'mcp' | 'agent'; export interface MetaDiffEntry { id: string; status: 'added' | 'removed' | 'modified'; } export interface MetaDiffCategory { added: number; removed: number; modified: number; entries: MetaDiffEntry[]; } export interface MetaDiff { totals: { added: number; removed: number; modified: number; }; categories: Partial>; } export type MetaSnapshot = Partial>>; /** Read the current meta from disk into an in-memory snapshot. */ export declare function readMetaSnapshot(outDir: string): MetaSnapshot; /** Diff two snapshots; only changed ids and non-empty categories are returned. */ export declare function computeMetaDiff(before: MetaSnapshot, after: MetaSnapshot): MetaDiff;