import { MemoryLifecycleEventType, MemoryFile, MemoryLifecycleEvent, MemoryFrontmatter, MemoryStatus, MemoryLifecycleStateSummary } from './types.js';
import './index-1qIcnbG1.js';

declare const MEMORY_LIFECYCLE_RULE_VERSION = "memory-lifecycle-ledger.v1";
declare const MEMORY_LIFECYCLE_EVENT_SORT_ORDER: Record<MemoryLifecycleEventType, number>;
declare function toMemoryPathRel(baseDir: string, filePath: string): string;
declare function isArchivedMemoryPath(pathRel: string): boolean;
declare function inferMemoryStatus(frontmatter: MemoryFrontmatter, pathRel: string, fallbackStatus?: MemoryStatus): MemoryStatus;
declare function isActiveMemoryStatus(status: MemoryStatus | string | undefined): boolean;
declare function summarizeMemoryLifecycleState(memory: MemoryFile): MemoryLifecycleStateSummary;
declare function makeRebuiltMemoryLifecycleEvent(memory: MemoryFile, eventType: MemoryLifecycleEventType, timestamp: string): MemoryLifecycleEvent;
declare function buildLifecycleEventsForMemory(memory: MemoryFile): MemoryLifecycleEvent[];
declare function sortMemoryLifecycleEvents(events: MemoryLifecycleEvent[]): MemoryLifecycleEvent[];

export { MEMORY_LIFECYCLE_EVENT_SORT_ORDER, MEMORY_LIFECYCLE_RULE_VERSION, buildLifecycleEventsForMemory, inferMemoryStatus, isActiveMemoryStatus, isArchivedMemoryPath, makeRebuiltMemoryLifecycleEvent, sortMemoryLifecycleEvents, summarizeMemoryLifecycleState, toMemoryPathRel };
