File size: 424 Bytes
4e23b01
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import { createDecorator } from '@moonshot-ai/agent-core-v2';

export interface IGuiStoreService {
  readonly _serviceBrand: undefined;
  getItem(key: string): Promise<string | null>;
  setItem(key: string, value: string): Promise<void>;
  removeItem(key: string): Promise<void>;
  clear(): Promise<void>;
  length(): Promise<number>;
}

export const IGuiStoreService = createDecorator<IGuiStoreService>('guiStoreService');