Skip to main content
Glama
posthog-persistence.d.ts2.02 kB
import { PersistentStore, PostHogConfig, Properties } from './types'; /** * PostHog Persistence Object * @constructor */ export declare class PostHogPersistence { private config; props: Properties; storage: PersistentStore; campaign_params_saved: boolean; name: string; disabled: boolean | undefined; secure: boolean | undefined; expire_days: number | undefined; default_expiry: number | undefined; cross_subdomain: boolean | undefined; constructor(config: PostHogConfig); private buildStorage; properties(): Properties; load(): void; /** * NOTE: Saving frequently causes issues with Recordings and Consent Management Platform (CMP) tools which * observe cookie changes, and modify their UI, often causing infinite loops. * As such callers of this should ideally check that the data has changed beforehand */ save(): void; remove(): void; clear(): void; /** * @param {Object} props * @param {*=} default_value * @param {number=} days */ register_once(props: Properties, default_value: any, days?: number): boolean; /** * @param {Object} props * @param {number=} days */ register(props: Properties, days?: number): boolean; unregister(prop: string): void; update_campaign_params(): void; update_search_keyword(): void; update_referrer_info(): void; set_initial_person_info(): void; get_referrer_info(): Properties; get_initial_props(): Properties; safe_merge(props: Properties): Properties; update_config(config: PostHogConfig, oldConfig: PostHogConfig): void; set_disabled(disabled: boolean): void; set_cross_subdomain(cross_subdomain: boolean): void; get_cross_subdomain(): boolean; set_secure(secure: boolean): void; set_event_timer(event_name: string, timestamp: number): void; remove_event_timer(event_name: string): number; get_property(prop: string): any; set_property(prop: string, to: any): void; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sadiuysal/mem0-mcp-server-ts'

If you have feedback or need assistance with the MCP directory API, please join our Discord server