teodor-new-chat-ui 4.3.23 → 4.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,6 +2,7 @@ import type { HydratedCheckpointSnapshot } from '@/types/api';
|
|
|
2
2
|
export interface CachedThreadEntry {
|
|
3
3
|
threadId: string;
|
|
4
4
|
snapshot: HydratedCheckpointSnapshot | null;
|
|
5
|
+
updatedAt?: number;
|
|
5
6
|
}
|
|
6
7
|
export declare function makeMessageCacheKey(prefix: string, threadId: string): string;
|
|
7
8
|
export declare function loadCachedThreadEntry(prefix: string, threadId: string): CachedThreadEntry | null;
|
|
@@ -2,5 +2,5 @@ export declare const CACHE_SAVE_DEBOUNCE_MS = 300;
|
|
|
2
2
|
export declare function scheduleIdle(cb: () => void, timeout?: number): void;
|
|
3
3
|
export declare function canUseStorage(): boolean;
|
|
4
4
|
export declare function safeGetItem(key: string): string | null;
|
|
5
|
-
export declare function safeSetItem(key: string, value: string):
|
|
5
|
+
export declare function safeSetItem(key: string, value: string): boolean;
|
|
6
6
|
export declare function safeRemoveItem(key: string): void;
|