/** * Shared utility functions for the memory subsystem. * * Centralises helpers that were previously copy-pasted across * schema.ts, episodes.ts, semantic.ts, consolidation.ts, * voice-sig.ts and bootstrap.ts. */ /** Generate a prefixed unique identifier (e.g. "sn_a1b2c3d4e5f6"). */ export declare function generateId(prefix: string): string; /** Current UTC time as an ISO-8601 string. */ export declare function nowISO(): string; /** JSON-stringify a value, returning null for undefined/null inputs. */ export declare function jsonOrNull(val: unknown): string | null; /** Safely parse a JSON string into a string array, defaulting to []. */ export declare function parseJsonArray(val: string | null | undefined): string[]; /** * Parse a human-readable relative time string or ISO-8601 timestamp into an * ISO-8601 string. Returns `undefined` for unrecognised input. * * Supported formats: * - ISO-8601 strings (returned as-is) * - "last 24h", "last 24 hours" * - "last 7d", "last 7 days", "last week" * - "last 1h", "last hour" * - "yesterday" * - "today" */ export declare function parseRelativeTime(input: string): string | undefined; /** Safely parse a JSON string into an object, defaulting to {}. */ export declare function parseJsonObject(val: string | null | undefined): Record; /** * Resolve an optional `validUntil` argument into a strictly-future ISO timestamp, * or null. Garbage (unparseable) and past/now instants both yield null so the * note is saved permanent rather than born already-due. Exported for tests. */ export declare function resolveFutureExpiry(validUntil: unknown): string | null; //# sourceMappingURL=utils.d.ts.map