import type { Event, Request, Response } from '@devvit/multiplatform/ui-shared-shared.js'; import { EventScope } from '@devvit/multiplatform/ui-shared-shared.js'; import type { UIRequest, UIResponse } from '@devvit/protos/types/devvit/ui/block_kit/v1beta/ui.js'; import { type UIEvent } from '@devvit/protos/types/devvit/ui/events/v1alpha/event.js'; export type UIState = { [key: string]: any; } | undefined; /** Must be JSON serializable for devvit-surface. */ export type UIProps = { postId?: string | undefined; [key: string]: unknown; } | undefined; export declare class WrappedEvent implements Event { uiEvent: UIEvent; async?: boolean | null | undefined; hook?: string | null | undefined; retry?: boolean | null | undefined; scope: EventScope; constructor(config: UIEvent); } export declare class WrappedRequest implements Request { uiRequest: UIRequest; events: WrappedEvent[]; state?: UIState; constructor(uiRequest: UIRequest); } export declare class WrappedResponse implements Response { uiResponse: UIResponse; replay: WrappedEvent[]; state?: UIState; constructor(uiResponse: UIResponse); } //# sourceMappingURL=mappers.d.ts.map