import type { Metadata } from '@devvit/protos/lib/Types.js'; import { type ContextAction, ContextActionDefinition, type ContextActionList, type ContextActionRequest, type ContextActionResponse } from '@devvit/protos/types/devvit/actor/reddit/context_action.js'; import { type CustomPost, CustomPostDefinition, type RenderPostRequest, type RenderPostResponse } from '@devvit/protos/types/devvit/reddit/custom_post/v1alpha/custom_post.js'; import type { UIRequest, UIResponse } from '@devvit/protos/types/devvit/ui/block_kit/v1beta/ui.js'; import { type HandleUIEventRequest, type HandleUIEventResponse, type UIEventHandler, UIEventHandlerDefinition } from '@devvit/protos/types/devvit/ui/events/v1alpha/handle_ui.js'; import type { Empty } from '@devvit/protos/types/google/protobuf/empty.js'; import { type Client } from 'nice-grpc-web'; import type { RemoteRuntimePerformanceService } from './performance.js'; export type UIApp = UIEventHandler & CustomPost; type Meta = { installation: string; actor: string; }; export declare class RemoteApp implements UIApp, ContextAction { #private; /** * Create an object that performs handles runtime requests * @param gatewayOrigin - url of gateway to send requests * @param meta - auth, app and other headers * @param performanceService - optional object for measuring performance */ static new(gatewayOrigin: string, meta: Meta, performanceService: RemoteRuntimePerformanceService | undefined): RemoteApp; constructor(contextAction: Client, customPost: Client, uiEventHandler: Client, meta: Meta, performanceService: RemoteRuntimePerformanceService | undefined); GetActions(req: Readonly, meta: Readonly | undefined): Promise; HandleUIEvent(req: Readonly, meta: Readonly | undefined): Promise; OnAction(req: Readonly, meta: Readonly | undefined): Promise; RenderPost(req: Readonly, meta: Readonly | undefined): Promise; RenderPostContent(req: Readonly, meta: Readonly | undefined): Promise; RenderPostComposer(req: Readonly, meta: Readonly | undefined): Promise; } export {}; //# sourceMappingURL=remote-app.d.ts.map