import { type ListOwnedRuntimeEndpointsResponse, type OwnedRuntimeEndpointView, type RegisterRuntimeEndpointParams, type RegisterRuntimeEndpointResponse, type RuntimeAdapterEventOutcome, type RuntimeAdapterProcessingStateEvent, type RuntimeAssignmentReplyIntentParams, type RuntimeAssignmentReplyIntentResponse, type RuntimeClaimCandidatesParams, type RuntimeClaimCandidatesResponse, type RuntimeDispatchUndispatchedParams, type RuntimeDispatchUndispatchedResponse, type RuntimeExactSessionCustodyAppliedParams, type RuntimeExactSessionCustodyAppliedResponse, type RuntimeExactSessionCustodyControl, type RuntimeExactSessionCustodyResolveParams, type RuntimeExactSessionCustodyResolveResponse, type RuntimeExactSessionCustodySourceParams, type RuntimeExactTargetPresentationAcquireParams, type RuntimeExactTargetPresentationAcquireResponse, type RuntimeExactTargetPresentationEvidenceEvent, type RuntimeExactTargetPresentationEvidenceOutcome, type RuntimeExactTargetPresentationReleaseEvent, type RuntimeExactTargetPresentationReleaseOutcome, type RuntimeExactTargetRecipientAdmissionEvidenceEvent, type RuntimeExactTargetRecipientAdmissionEvidenceOutcome, type RuntimeNodeRecipientMessageAdmissionEvidenceEvent, type RuntimeNodeRecipientMessageAdmissionOutcome, type RuntimeNodeRef, type RuntimeOutboundMessageIntentParams, type RuntimeOutboundMessageIntentResponse, type RuntimeOwnerActionHandoffInitParams, type RuntimeOwnerActionHandoffInitResponse, type RuntimeOwnerActionHandoffPollParams, type RuntimeOwnerActionHandoffPollResponse, type RuntimeParticipantConversationSubject, type RuntimeSelfClaimOutcome, type RuntimeSelfClaimParams, type RuntimeSelfClaimReleaseParams, type RuntimeSelfSettleOutcome, type RuntimeSelfSettleParams, type RuntimeServicesRetainedNodeRecipientAcquireParams, type RuntimeServicesRetainedNodeRecipientAcquireResponse, type RuntimeServicesRetainedNodeRecipientConsumptionEvent, type RuntimeServicesRetainedNodeRecipientConsumptionOutcome, type RuntimeServicesRetainedNodeRecipientReplyEvent, type RuntimeServicesRetainedNodeRecipientReplyOutcome, type RuntimeTargetMessageDeliveryFacts, type RuntimeUndispatchedDismissParams, type RuntimeUndispatchedDismissResponse, type TransitionRuntimeEndpointStateParams, type TransitionRuntimeEndpointStateResponse, type UnregisterRuntimeEndpointResponse, type UpdateRuntimeEndpointDisplayMetadataParams } from "./types.js"; export type RuntimeAdapterFetch = typeof fetch; export declare const TARGET_SENDER_MEDIA_TYPE = "application/vnd.masons.icm-messaging-v2+json"; export type RuntimeAdapterRequestKind = "register_runtime_endpoint" | "heartbeat_runtime_endpoint" | "transition_runtime_endpoint_state" | "update_runtime_endpoint_display_metadata" | "unregister_runtime_endpoint" | "list_owned_runtime_endpoints" | "get_owned_runtime_endpoint" | "list_runtime_claim_candidates" | "dispatch_runtime_undispatched" | "init_runtime_owner_action_handoff" | "poll_runtime_owner_action_handoff" | "claim_runtime_self_assignment" | "release_runtime_self_assignment" | "settle_runtime_mailbox_item" | "dismiss_runtime_undispatched" | "create_runtime_assignment_reply_intent" | "create_runtime_outbound_message_intent" | "list_runtime_directed_session_targets" | "submit_runtime_target_send" | "read_runtime_target_attempt_outcome" | "read_runtime_target_message_outcome" | "submit_node_recipient_message_admission_evidence" | "acquire_services_retained_node_recipient_message" | "consume_services_retained_node_recipient_message" | "reply_services_retained_node_recipient_message" | "acquire_exact_target_presentation" | "submit_exact_target_recipient_admission_evidence" | "submit_exact_target_presentation_evidence" | "release_exact_target_presentation" | "stream_exact_session_custody_controls" | "resolve_exact_session_custody_control" | "apply_exact_session_custody_control" | "emit_runtime_processing_state"; export interface RuntimeAdapterClientConfig { apiHost: string; fetch?: RuntimeAdapterFetch; requestTimeoutMs?: Partial>; } export interface RuntimeEndpointReadOptions { endpointNonce?: string; } export declare class RuntimeAdapterApiError extends Error { readonly status: number; readonly code: string; constructor(status: number, code: string, message: string); } export declare class RuntimeAdapterNetworkError extends Error { readonly code: "timeout" | "network"; readonly detail: string; readonly requestKind: RuntimeAdapterRequestKind; constructor(code: "timeout" | "network", detail: string, requestKind: RuntimeAdapterRequestKind); } export type RuntimeDirectedSessionResolutionQuery = { kind: "node_match"; match: { kind: "canonical_handle_exact"; handle: string; }; } | { kind: "node_sessions"; node_ref: string; match?: { kind: "approved_display_exact"; label: string; }; } | { kind: "browse_nodes"; }; export interface RuntimeDirectedSessionResolutionParams { endpoint_id: string; endpoint_nonce: string; continuation?: string; query: RuntimeDirectedSessionResolutionQuery; } export type RuntimeDirectedSessionLabelOrigin = "approved_display" | "approved_display_with_query_discriminator" | "query_discriminator_only"; export type RuntimeTargetSendSource = { kind: "node"; node_ref: string; } | { kind: "exact_session"; session_ref: string; }; export type RuntimeDirectedSessionTargetCoverage = "exact_sessions_complete" | "exact_sessions_not_applicable" | "exact_sessions_incomplete"; export interface RuntimeDirectedSessionResolutionNode { node_ref: string; identity?: RuntimeNodeRef; display: { label: string; label_origin: RuntimeDirectedSessionLabelOrigin; }; coverage: RuntimeDirectedSessionTargetCoverage; } export interface RuntimeDirectedSessionResolutionSession { display: { name?: string; label: string; label_origin: RuntimeDirectedSessionLabelOrigin; host_label?: string; }; target_ref: string; } export interface RuntimeDirectedSessionResolutionTraversal { traversal_ref: string; page: number; page_bound: 12; entry_count: number; choice_count: number; complete: boolean; expires_at: string; continuation?: string; } export type RuntimeDirectedSessionResolutionResponse = { status: "runtime_node_target_resolution"; contract_version: 3; acting_source: RuntimeTargetSendSource; query: { kind: "node_match"; match: "canonical_handle_exact"; handle: string; }; outcome: "zero" | "one"; nodes: RuntimeDirectedSessionResolutionNode[]; } | { status: "runtime_node_session_target_resolution"; contract_version: 3; acting_source: RuntimeTargetSendSource; query: { kind: "node_sessions"; match: "approved_display_exact"; node_ref: string; label: string; }; node: RuntimeDirectedSessionResolutionNode; outcome: "not_applicable" | "zero" | "one"; sessions: RuntimeDirectedSessionResolutionSession[]; } | { status: "runtime_node_target_page"; contract_version: 3; acting_source: RuntimeTargetSendSource; query: { kind: "browse_nodes"; }; traversal: RuntimeDirectedSessionResolutionTraversal; nodes: RuntimeDirectedSessionResolutionNode[]; } | { status: "runtime_node_session_target_page"; contract_version: 3; acting_source: RuntimeTargetSendSource; query: { kind: "node_sessions"; node_ref: string; }; node: RuntimeDirectedSessionResolutionNode; traversal: RuntimeDirectedSessionResolutionTraversal; sessions: RuntimeDirectedSessionResolutionSession[]; }; export type RuntimeTargetReceivePolicy = "current_only" | "store_only" | "current_then_store"; export interface RuntimePermittedHostDeclarationsV1 { conversation_scid?: string; } type RuntimeTargetSendInvocation = { endpoint_id: string; endpoint_nonce: string; } | { endpoint_id?: never; endpoint_nonce?: never; }; type RuntimeTargetSendParamsBase = { send_request_id: string; acting_source: RuntimeTargetSendSource; content: string; content_type: string; } & RuntimeTargetSendInvocation; export type RuntimeTargetSendParams = (RuntimeTargetSendParamsBase & { send_intent: "initiate"; addressed_grain: "exact_session"; receive_policy: RuntimeTargetReceivePolicy; addressed_party_ref: string; requested_conversation_ref?: never; declarations?: never; }) | (RuntimeTargetSendParamsBase & { send_intent: "initiate"; addressed_grain: "node"; receive_policy?: never; addressed_party_ref: string; requested_conversation_ref?: never; declarations?: never; }) | (RuntimeTargetSendParamsBase & { send_intent: "continue"; addressed_grain?: never; addressed_party_ref?: never; receive_policy?: never; requested_conversation_ref: string; declarations?: RuntimePermittedHostDeclarationsV1; }); export interface RuntimeTargetOutcomeInvokingSession { endpointId: string; endpointNonce: string; } export type RuntimeTargetSenderAttemptOutcome = { attempt_ref: string; projection_etag: string; outcome: "refused"; refusal_code: "not_authorized" | "identity_not_admissible" | "invalid_target" | "invalid_declaration" | "capability_not_current"; outcome_at: string; } | { attempt_ref: string; projection_etag: string; outcome: "refused"; refusal_code: "remote_definitive_refusal"; remote_refusal_decided_at: string; local_outcome_recorded_at: string; outcome_at: string; } | { attempt_ref: string; projection_etag: string; outcome: "placement_pending" | "placement_lapsed"; placement_deadline: string; outcome_at: string; } | { attempt_ref: string; projection_etag: string; outcome: "dispatch_pending" | "acceptance_unconfirmed"; outcome_at: string; }; interface RuntimeTargetSenderMessageOutcomeCommon { message_ref: string; subject: RuntimeParticipantConversationSubject; projection_etag: string; outcome_at: string; } export type RuntimeTargetSenderMessageOutcome = RuntimeTargetSenderMessageOutcomeCommon & RuntimeTargetMessageDeliveryFacts; export type RuntimeTargetSendOutcome = RuntimeTargetSenderAttemptOutcome | RuntimeTargetSenderMessageOutcome; export declare function registerRuntimeEndpoint(cfg: RuntimeAdapterClientConfig, runtimeKey: string, params: RegisterRuntimeEndpointParams): Promise; export declare function heartbeatRuntimeEndpoint(cfg: RuntimeAdapterClientConfig, runtimeKey: string, endpointId: string): Promise>; export declare function transitionRuntimeEndpointState(cfg: RuntimeAdapterClientConfig, runtimeKey: string, endpointId: string, params: TransitionRuntimeEndpointStateParams): Promise; export declare function updateRuntimeEndpointDisplayMetadata(cfg: RuntimeAdapterClientConfig, runtimeKey: string, endpointId: string, params: UpdateRuntimeEndpointDisplayMetadataParams): Promise; export declare function unregisterRuntimeEndpoint(cfg: RuntimeAdapterClientConfig, runtimeKey: string, endpointId: string, asNodeId?: string): Promise; export declare function listOwnedRuntimeEndpoints(cfg: RuntimeAdapterClientConfig, runtimeKey: string, asNodeId: string, options?: RuntimeEndpointReadOptions): Promise; export declare function getOwnedRuntimeEndpoint(cfg: RuntimeAdapterClientConfig, runtimeKey: string, endpointId: string, options?: RuntimeEndpointReadOptions): Promise; export declare function listRuntimeClaimCandidates(cfg: RuntimeAdapterClientConfig, runtimeKey: string, params: RuntimeClaimCandidatesParams): Promise; export declare function dispatchRuntimeUndispatched(cfg: RuntimeAdapterClientConfig, ownerAccessToken: string, params: RuntimeDispatchUndispatchedParams): Promise; export declare function initRuntimeOwnerActionHandoff(cfg: RuntimeAdapterClientConfig, runtimeKey: string, params: RuntimeOwnerActionHandoffInitParams): Promise; export declare function pollRuntimeOwnerActionHandoff(cfg: RuntimeAdapterClientConfig, runtimeKey: string, params: RuntimeOwnerActionHandoffPollParams): Promise; export declare function claimRuntimeSelfAssignment(cfg: RuntimeAdapterClientConfig, runtimeKey: string, params: RuntimeSelfClaimParams): Promise; export declare function releaseRuntimeSelfAssignment(cfg: RuntimeAdapterClientConfig, runtimeKey: string, params: RuntimeSelfClaimReleaseParams): Promise; export declare function settleRuntimeMailboxItem(cfg: RuntimeAdapterClientConfig, runtimeKey: string, params: RuntimeSelfSettleParams): Promise; export declare function dismissRuntimeUndispatched(cfg: RuntimeAdapterClientConfig, ownerAccessToken: string, params: RuntimeUndispatchedDismissParams): Promise; export declare function createRuntimeAssignmentReplyIntent(cfg: RuntimeAdapterClientConfig, runtimeKey: string, params: RuntimeAssignmentReplyIntentParams): Promise; export declare function createRuntimeOutboundMessageIntent(cfg: RuntimeAdapterClientConfig, runtimeKey: string, params: RuntimeOutboundMessageIntentParams): Promise; export declare function resolveRuntimeDirectedSessionTargets(cfg: RuntimeAdapterClientConfig, runtimeKey: string, params: RuntimeDirectedSessionResolutionParams): Promise; export declare function submitRuntimeTargetSend(cfg: RuntimeAdapterClientConfig, runtimeKey: string, params: RuntimeTargetSendParams): Promise; export declare function readRuntimeTargetAttemptOutcome(cfg: RuntimeAdapterClientConfig, runtimeKey: string, attemptRef: string, invokingSession?: RuntimeTargetOutcomeInvokingSession): Promise; export declare function readRuntimeTargetMessageOutcome(cfg: RuntimeAdapterClientConfig, runtimeKey: string, messageRef: string, invokingSession?: RuntimeTargetOutcomeInvokingSession): Promise; export declare function emitRuntimeProcessingState(cfg: RuntimeAdapterClientConfig, runtimeKey: string, event: RuntimeAdapterProcessingStateEvent): Promise; export declare function submitNodeRecipientMessageAdmissionEvidence(cfg: RuntimeAdapterClientConfig, runtimeKey: string, event: RuntimeNodeRecipientMessageAdmissionEvidenceEvent): Promise; export declare function acquireServicesRetainedNodeRecipientMessage(cfg: RuntimeAdapterClientConfig, runtimeKey: string, params: RuntimeServicesRetainedNodeRecipientAcquireParams): Promise; export declare function consumeServicesRetainedNodeRecipientMessage(cfg: RuntimeAdapterClientConfig, runtimeKey: string, event: RuntimeServicesRetainedNodeRecipientConsumptionEvent): Promise; export declare function replyServicesRetainedNodeRecipientMessage(cfg: RuntimeAdapterClientConfig, runtimeKey: string, event: RuntimeServicesRetainedNodeRecipientReplyEvent): Promise; export declare function acquireExactTargetPresentation(cfg: RuntimeAdapterClientConfig, runtimeKey: string, params: RuntimeExactTargetPresentationAcquireParams): Promise; export declare function streamExactSessionCustodyControls(cfg: RuntimeAdapterClientConfig, runtimeKey: string, params: RuntimeExactSessionCustodySourceParams): AsyncGenerator; export declare function resolveExactSessionCustodyControl(cfg: RuntimeAdapterClientConfig, runtimeKey: string, params: RuntimeExactSessionCustodyResolveParams): Promise; export declare function applyExactSessionCustodyControl(cfg: RuntimeAdapterClientConfig, runtimeKey: string, params: RuntimeExactSessionCustodyAppliedParams): Promise; export declare function submitExactTargetRecipientAdmissionEvidence(cfg: RuntimeAdapterClientConfig, runtimeKey: string, event: RuntimeExactTargetRecipientAdmissionEvidenceEvent): Promise; export declare function submitExactTargetPresentationEvidence(cfg: RuntimeAdapterClientConfig, runtimeKey: string, event: RuntimeExactTargetPresentationEvidenceEvent): Promise; export declare function releaseExactTargetPresentation(cfg: RuntimeAdapterClientConfig, runtimeKey: string, event: RuntimeExactTargetPresentationReleaseEvent): Promise; export {}; //# sourceMappingURL=runtime-adapter-api.d.ts.map