@reown/appkit-controllers
Version:
The full stack toolkit to build onchain app UX.
22 lines (21 loc) • 760 B
TypeScript
import type { Event, PendingEvent } from '../utils/TypeUtil.js';
export interface EventsControllerState {
timestamp: number;
reportedErrors: Record<string, boolean>;
data: Event;
pendingEvents: PendingEvent[];
subscribedToVisibilityChange: boolean;
}
export declare const EventsController: {
state: EventsControllerState;
subscribe(callback: (newState: EventsControllerState) => void): () => void;
getSdkProperties(): {
projectId: string;
st: "appkit";
sv: import("../utils/TypeUtil.js").SdkVersion;
};
_setPendingEvent(payload: EventsControllerState): void;
sendEvent(data: EventsControllerState["data"]): void;
_submitPendingEvents(): void;
_subscribeToVisibilityChange(): void;
};