import { BehaviorSubject } from 'rxjs'; /** * @description 靜態數據流類 * @example * gcs gcs(); */ export declare class gcs { GlobalContext: BehaviorSubject<{}>; constructor(); /** * @description 取得指定項目 * @param {*} keys 想要取得的項目鍵名 * @returns any - 對應鍵名的資料 * @example * gcs.get("firstKey", "SecondKey"); */ get(...keys: string[]): {}; /** * @description 設定、取代指定項目 * @param {*} keys 想要設定、取代的項目鍵名,最後一個參數為要設定的值 * @returns - 所有資料 * @example * gcs.set("firstKey", "SecondKey", { value : "myvalue" }); * gcs.set("firstKey", "SecondKey", 123); */ set(...keys: any[]): {}; /** * @description 移除指定項目 * @param {*} keys 想要移除項目鍵名 * @returns - 所有資料 * @example * gcs.remove("firstKey", "SecondKey"); */ remove(...keys: any[]): {}; /** * @description 清除所有 Context,還原空物件 * @returns - 所有資料 * @example * gcs.clear(); */ clear(...keys: any[]): {}; }