import type { MemoryHistorySnapshot } from "./memory.js"; /** Displayed short ID length used in /memory history output. */ export declare const MEMORY_SNAPSHOT_SHORT_ID_LENGTH = 8; /** Machine-readable error codes for snapshot selector resolution. */ export type SnapshotResolutionError = "empty" | "not_found" | "ambiguous"; /** * Result of strict snapshot selector resolution. * * Contract: * - `matchedInput` is always the normalized selector actually evaluated * - `resolvedId` is the full `entryId` when resolution succeeds * - `candidates` is populated only for ambiguous-prefix failures */ export interface SnapshotResolution { snapshot: MemoryHistorySnapshot | undefined; matchedInput: string; resolvedId: string | undefined; error: SnapshotResolutionError | undefined; candidates: string[]; } /** * Normalize a raw snapshot selector typed or pasted by the operator. * * Accepted normalization rules: * - trim surrounding whitespace * - strip one pair of surrounding brackets copied from `/memory history` * - treat `[]` as empty input */ export declare function normalizeSnapshotSelector(input: string): string; /** Resolve a snapshot selector against a provided current-branch snapshot list. */ export declare function resolveSnapshotSelector(selector: string, snapshots: readonly MemoryHistorySnapshot[]): SnapshotResolution; //# sourceMappingURL=snapshot-selector-resolver.d.ts.map