import type { Effect, Metadata, RealtimeEvent, UIEvent } from '@devvit/protos';
import type { WorkerErrorType } from '@devvit/runtime-lite/client/BrowserLiteClient.js';
import type { FaceplateEvent } from '@reddit/faceplate/event-types.js';
export type DevvitRealtimeSend = {
    event: RealtimeEvent;
};
export type DevvitRealtimeSendEvent = Omit<FaceplateEvent<'devvit-realtime-send'>, 'detail'> & {
    detail: DevvitRealtimeSend;
};
export type DevvitUIEffect = {
    effect: Effect;
    onEvent(event: UIEvent): void;
    metadata?: Metadata | undefined;
};
export type DevvitUIEffectEvent = Omit<FaceplateEvent<'devvit-ui-effect'>, 'detail'> & {
    detail: DevvitUIEffect;
};
export type DevvitUIError = {
    type: WorkerErrorType;
    err: unknown;
};
//# sourceMappingURL=events.d.ts.map