import { ActionType } from '../_contract/action-payloads/action-type'; import { EventType } from '../_contract/event-payloads/event-type'; export interface HostRequest { /** The SDK method name, so errors name the API the developer actually called. */ label: string; actionType: ActionType; /** The event the host answers this action with. */ resolvesWith: EventType; timeoutMs: number; } /** * Sends an action to Struct PIM and settles on the host's answer. * * Rejects as soon as the host reports it cannot serve the request instead of waiting out the * timeout. The host answers a request it cannot serve with ACTION_REJECTED, so ignoring that * event turns an immediate, specific reason into an indistinguishable timeout. */ export declare function requestFromHost({ label, actionType, resolvesWith, timeoutMs }: HostRequest): Promise; //# sourceMappingURL=request-from-host.d.ts.map