export declare const INTERCOM_PROTOCOL_NAME: "pi-intercom"; export declare const INTERCOM_PROTOCOL_VERSION: 4; export declare const INTERCOM_SCOPE_ENV: "AGENT_INTERCOM_SCOPE_ID"; export declare const INTERCOM_SCOPE_ID_PATTERN_SOURCE: "^[A-Za-z0-9_-]{16,128}$"; export declare const INTERCOM_SCOPE_ID_PATTERN: RegExp; export declare const INTERCOM_PROTOCOL_V4_VECTOR_SCHEMA_VERSION: 2; export type IntercomScopeId = string; export type ProtocolV4Scope = string | null; export type ProtocolV4Operation = "validate_scope" | "list" | "session_joined" | "session_left" | "presence_update" | "resolve" | "send" | "ask" | "reply" | "cancel_ask" | "defer_ask" | "replace" | "late_frame"; export type ProtocolV4Expected = "valid_scoped" | "valid_unscoped" | "invalid_scope" | "visible" | "hidden" | "global_exact_id" | "same_scope_name" | "same_scope_prefix" | "AMBIGUOUS_TARGET" | "SESSION_NOT_FOUND" | "delivered" | "exact_edge" | "old_left_before_new_joined" | "same_scope_left_before_joined" | "discard"; export interface ProtocolV4Candidate { readonly id: string; readonly name: string; readonly scope: ProtocolV4Scope; } export interface ProtocolV4Vector { readonly name: string; readonly operation: ProtocolV4Operation; readonly actorId?: string; readonly actorScope?: ProtocolV4Scope; readonly subjectId?: string; readonly subjectScope?: ProtocolV4Scope; readonly selector?: string; readonly scopeInput?: unknown; readonly candidates?: readonly ProtocolV4Candidate[]; readonly expected: ProtocolV4Expected; readonly expectedTargetIds?: readonly string[]; readonly expectedAudienceIds?: readonly string[]; readonly expectedEvents?: readonly string[]; } export declare const PROTOCOL_V4_SCOPE_A: "Scope_AAAAAAAAAA"; export declare const PROTOCOL_V4_SCOPE_B: "Scope_BBBBBBBBBB"; export declare const INTERCOM_PROTOCOL_V4_VECTORS: readonly ProtocolV4Vector[]; export declare const INTERCOM_PROTOCOL_V4_SEMANTICS_HASH: string; export declare function parseIntercomScopeId(value: unknown, path?: string): IntercomScopeId | undefined; export declare function intercomScopeIdFromEnv(env?: NodeJS.ProcessEnv): IntercomScopeId | undefined; export declare function sameIntercomScope(left: IntercomScopeId | undefined, right: IntercomScopeId | undefined): boolean; //# sourceMappingURL=protocol-v4.d.ts.map