import { z } from "zod"; declare const GSCDUMP_REALTIME_PROTOCOL_VERSION: 1; declare const GSCDUMP_REALTIME_SUBPROTOCOL: "gscdump.v1"; declare const GSCDUMP_REALTIME_TICKET_PREFIX: "gscdump.ticket.v1"; declare const GSCDUMP_REALTIME_TICKET_ISSUER: "https://gscdump.com"; declare const GSCDUMP_REALTIME_TICKET_AUDIENCE: "https://gscdump.com/ws/v1"; declare const GSCDUMP_REALTIME_PING: "ping"; declare const GSCDUMP_REALTIME_PONG: "pong"; declare const GSCDUMP_REALTIME_TICKET_TTL_SECONDS: 60; declare const GSCDUMP_REALTIME_MAX_CONNECTION_SECONDS: 900; declare const GSCDUMP_REALTIME_TICKET_POLICY: { readonly algorithm: "HMAC-SHA-256"; readonly minimumSigningKeyBytes: 32; readonly jtiRandomBits: 128; readonly maxVerificationKeys: 2; readonly futureIssuedAtToleranceMs: 5000; readonly expiryToleranceMs: 0; readonly rotationOverlapMs: 90000; readonly maxBytes: 2048; readonly singleUse: true; }; declare const GSCDUMP_REALTIME_CONNECTION_POLICY: { readonly helloDeadlineMs: 10000; readonly maxLifetimeMs: 900000; readonly connectionRefreshBeforeExpiryMs: 30000; readonly heartbeatIntervalMs: 25000; readonly staleAfterMs: 75000; readonly reconnectBaseDelayMs: 1000; readonly reconnectMaxDelayMs: 30000; readonly reconnectJitter: "equal"; }; declare const GSCDUMP_REALTIME_REPLAY_POLICY: { readonly maxAgeMs: 86400000; readonly maxEventsPerStream: 10000; }; declare const GSCDUMP_REALTIME_LIMITS: { readonly clientFrameMaxBytes: 16384; readonly durableEventMaxBytes: 65536; readonly ephemeralEventMaxBytes: 16384; readonly outboundFrameMaxBytes: 262144; readonly batchMaxEvents: 20; readonly batchMaxBytes: 262144; readonly connectionAttachmentMaxBytes: 2048; }; declare const GSCDUMP_REALTIME_ACK_POLICY: { readonly softLagEvents: 100; readonly softLagBytes: 1048576; readonly hardLagEvents: 500; readonly hardLagBytes: 4194304; readonly hardLagCloseCode: 1013; readonly effectRetryBeforeUnsafeResync: 3; }; declare const GSCDUMP_REALTIME_CLOSE_CODES: { readonly normal: 1000; readonly protocolError: 1002; readonly policyViolation: 1008; readonly internalError: 1011; readonly serviceRestart: 1012; readonly overloadedOrAckLag: 1013; readonly maximumLifetime: 4001; }; declare const REALTIME_V1_RESOURCE_TYPES: readonly ["partner.user", "partner.team", "user.sites", "site.registration", "site.lifecycle", "site.analytics", "site.sitemaps", "site.indexing", "site.auth"]; declare const REALTIME_V1_EVENT_NAMES: readonly ["user.lifecycle.changed", "site.lifecycle.changed", "site.lifecycle.progress", "site.analytics.ready", "site.sitemaps.ready", "site.indexing.ready", "site.auth.failed", "site.lifecycle.failed", "site.registration.changed"]; declare const REALTIME_V1_EVENT_SEMANTICS: { readonly 'user.lifecycle.changed': { readonly delivery: "durable"; readonly baseChanges: readonly ["partner.user", "user.sites"]; }; readonly 'site.lifecycle.changed': { readonly delivery: "durable"; readonly baseChanges: readonly ["site.lifecycle"]; }; readonly 'site.lifecycle.progress': { readonly delivery: "ephemeral"; readonly baseChanges: readonly []; }; readonly 'site.analytics.ready': { readonly delivery: "durable"; readonly baseChanges: readonly ["site.analytics", "site.lifecycle"]; }; readonly 'site.sitemaps.ready': { readonly delivery: "durable"; readonly baseChanges: readonly ["site.sitemaps", "site.lifecycle"]; }; readonly 'site.indexing.ready': { readonly delivery: "durable"; readonly baseChanges: readonly ["site.indexing", "site.lifecycle"]; }; readonly 'site.auth.failed': { readonly delivery: "durable"; readonly baseChanges: readonly ["site.auth", "site.lifecycle"]; }; readonly 'site.lifecycle.failed': { readonly delivery: "durable"; readonly baseChanges: readonly ["site.lifecycle"]; }; readonly 'site.registration.changed': { readonly delivery: "durable"; readonly baseChanges: readonly ["site.registration", "user.sites"]; }; }; declare function createRealtimeV1Schemas(): { opaquePublicId: z.ZodString; userStreamId: z.ZodString; partnerStreamId: z.ZodString; publicUserId: z.ZodString; publicPartnerId: z.ZodString; publicTeamId: z.ZodString; publicSiteId: z.ZodString; publicPrincipalId: z.ZodUnion; publicResourceId: z.ZodUnion; publicRequestId: z.ZodString; publicEventId: z.ZodString; sequence: z.ZodString; streamId: z.ZodUnion; cursor: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; streamHead: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; ticketResponseClient: z.ZodObject<{ data: z.ZodObject<{ socketUrl: z.ZodURL; protocol: z.ZodLiteral<"gscdump.v1">; protocolVersion: z.ZodLiteral<1>; ticket: z.ZodString; expiresAt: z.ZodISODateTime; head: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$loose>; maxConnectionSeconds: z.ZodLiteral<900>; }, z.core.$loose>; meta: z.ZodObject<{ requestId: z.ZodString; surface: z.ZodLiteral<"realtime">; version: z.ZodLiteral<"1.0">; }, z.core.$loose>; }, z.core.$loose>; ticketRequest: z.ZodObject<{ origin: z.ZodOptional; }, z.core.$strict>; ticketClaims: z.ZodObject<{ v: z.ZodLiteral<1>; iss: z.ZodLiteral<"https://gscdump.com">; aud: z.ZodLiteral<"https://gscdump.com/ws/v1">; kid: z.ZodString; jti: z.ZodString; iat: z.ZodNumber; exp: z.ZodNumber; connectionExpiresAt: z.ZodNumber; principalClass: z.ZodEnum<{ user_key: "user_key"; partner_key: "partner_key"; }>; principalPublicId: z.ZodUnion; streamId: z.ZodUnion; origin: z.ZodNullable; }, z.core.$strict>; knownResourceType: z.ZodEnum<{ "partner.user": "partner.user"; "partner.team": "partner.team"; "user.sites": "user.sites"; "site.registration": "site.registration"; "site.lifecycle": "site.lifecycle"; "site.analytics": "site.analytics"; "site.sitemaps": "site.sitemaps"; "site.indexing": "site.indexing"; "site.auth": "site.auth"; }>; resourceChange: z.ZodObject<{ type: z.ZodString; id: z.ZodString; kind: z.ZodEnum<{ created: "created"; updated: "updated"; deleted: "deleted"; }>; }, z.core.$strict>; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; durableEvent: z.ZodObject<{ cursor: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; changes: z.ZodArray; }, z.core.$strict>>; delivery: z.ZodLiteral<"durable">; type: z.ZodLiteral<"event">; protocolVersion: z.ZodLiteral<1>; eventVersion: z.ZodNumber; id: z.ZodString; name: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; occurredAt: z.ZodISODateTime; correlationId: z.ZodNullable; data: z.ZodJSONSchema; }, z.core.$strict>; ephemeralEvent: z.ZodObject<{ cursor: z.ZodNull; changes: z.ZodArray; }, z.core.$strict>>; delivery: z.ZodLiteral<"ephemeral">; type: z.ZodLiteral<"event">; protocolVersion: z.ZodLiteral<1>; eventVersion: z.ZodNumber; id: z.ZodString; name: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; occurredAt: z.ZodISODateTime; correlationId: z.ZodNullable; data: z.ZodJSONSchema; }, z.core.$strict>; event: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; changes: z.ZodArray; }, z.core.$strict>>; delivery: z.ZodLiteral<"durable">; type: z.ZodLiteral<"event">; protocolVersion: z.ZodLiteral<1>; eventVersion: z.ZodNumber; id: z.ZodString; name: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; occurredAt: z.ZodISODateTime; correlationId: z.ZodNullable; data: z.ZodJSONSchema; }, z.core.$strict>, z.ZodObject<{ cursor: z.ZodNull; changes: z.ZodArray; }, z.core.$strict>>; delivery: z.ZodLiteral<"ephemeral">; type: z.ZodLiteral<"event">; protocolVersion: z.ZodLiteral<1>; eventVersion: z.ZodNumber; id: z.ZodString; name: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; occurredAt: z.ZodISODateTime; correlationId: z.ZodNullable; data: z.ZodJSONSchema; }, z.core.$strict>]>; helloFrame: z.ZodObject<{ type: z.ZodLiteral<"hello">; protocolVersion: z.ZodLiteral<1>; sdkVersion: z.ZodString; resume: z.ZodNullable; sequence: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>; ackFrame: z.ZodObject<{ type: z.ZodLiteral<"ack">; cursor: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; readyFrame: z.ZodObject<{ type: z.ZodLiteral<"ready">; protocolVersion: z.ZodLiteral<1>; connectionId: z.ZodString; streamId: z.ZodUnion; replayFloor: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; head: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; limits: z.ZodObject<{ maxBatchEvents: z.ZodNumber; maxUnackedEvents: z.ZodNumber; }, z.core.$strict>; heartbeat: z.ZodObject<{ ping: z.ZodLiteral<"ping">; pong: z.ZodLiteral<"pong">; }, z.core.$strict>; expiresAt: z.ZodISODateTime; }, z.core.$strict>; replayBeginFrame: z.ZodObject<{ type: z.ZodLiteral<"replay.begin">; after: z.ZodNullable; sequence: z.ZodString; }, z.core.$strict>>; through: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; replayEndFrame: z.ZodObject<{ type: z.ZodLiteral<"replay.end">; through: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; batchFrame: z.ZodObject<{ type: z.ZodLiteral<"batch">; events: z.ZodArray; sequence: z.ZodString; }, z.core.$strict>; changes: z.ZodArray; }, z.core.$strict>>; delivery: z.ZodLiteral<"durable">; type: z.ZodLiteral<"event">; protocolVersion: z.ZodLiteral<1>; eventVersion: z.ZodNumber; id: z.ZodString; name: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; occurredAt: z.ZodISODateTime; correlationId: z.ZodNullable; data: z.ZodJSONSchema; }, z.core.$strict>>; }, z.core.$strict>; resyncRequiredFrame: z.ZodObject<{ type: z.ZodLiteral<"resync.required">; reason: z.ZodEnum<{ cursor_expired: "cursor_expired"; retention_gap: "retention_gap"; sequence_gap: "sequence_gap"; stream_mismatch: "stream_mismatch"; }>; scope: z.ZodObject<{ type: z.ZodLiteral<"stream">; streamId: z.ZodUnion; }, z.core.$strict>; resumeAfter: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; realtimeErrorFrame: z.ZodObject<{ type: z.ZodLiteral<"error">; error: z.ZodObject<{ code: z.ZodEnum<{ invalid_frame: "invalid_frame"; protocol_mismatch: "protocol_mismatch"; policy_violation: "policy_violation"; overloaded: "overloaded"; internal_error: "internal_error"; }>; message: z.ZodString; retryable: z.ZodBoolean; retryAfter: z.ZodOptional; }, z.core.$strict>; }, z.core.$strict>; clientFrame: z.ZodUnion; protocolVersion: z.ZodLiteral<1>; sdkVersion: z.ZodString; resume: z.ZodNullable; sequence: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"ack">; cursor: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; }, z.core.$strict>]>; serverFrame: z.ZodUnion; protocolVersion: z.ZodLiteral<1>; connectionId: z.ZodString; streamId: z.ZodUnion; replayFloor: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; head: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; limits: z.ZodObject<{ maxBatchEvents: z.ZodNumber; maxUnackedEvents: z.ZodNumber; }, z.core.$strict>; heartbeat: z.ZodObject<{ ping: z.ZodLiteral<"ping">; pong: z.ZodLiteral<"pong">; }, z.core.$strict>; expiresAt: z.ZodISODateTime; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"replay.begin">; after: z.ZodNullable; sequence: z.ZodString; }, z.core.$strict>>; through: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"replay.end">; through: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; }, z.core.$strict>, z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; changes: z.ZodArray; }, z.core.$strict>>; delivery: z.ZodLiteral<"durable">; type: z.ZodLiteral<"event">; protocolVersion: z.ZodLiteral<1>; eventVersion: z.ZodNumber; id: z.ZodString; name: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; occurredAt: z.ZodISODateTime; correlationId: z.ZodNullable; data: z.ZodJSONSchema; }, z.core.$strict>, z.ZodObject<{ cursor: z.ZodNull; changes: z.ZodArray; }, z.core.$strict>>; delivery: z.ZodLiteral<"ephemeral">; type: z.ZodLiteral<"event">; protocolVersion: z.ZodLiteral<1>; eventVersion: z.ZodNumber; id: z.ZodString; name: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; occurredAt: z.ZodISODateTime; correlationId: z.ZodNullable; data: z.ZodJSONSchema; }, z.core.$strict>]>, z.ZodObject<{ type: z.ZodLiteral<"batch">; events: z.ZodArray; sequence: z.ZodString; }, z.core.$strict>; changes: z.ZodArray; }, z.core.$strict>>; delivery: z.ZodLiteral<"durable">; type: z.ZodLiteral<"event">; protocolVersion: z.ZodLiteral<1>; eventVersion: z.ZodNumber; id: z.ZodString; name: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; occurredAt: z.ZodISODateTime; correlationId: z.ZodNullable; data: z.ZodJSONSchema; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"resync.required">; reason: z.ZodEnum<{ cursor_expired: "cursor_expired"; retention_gap: "retention_gap"; sequence_gap: "sequence_gap"; stream_mismatch: "stream_mismatch"; }>; scope: z.ZodObject<{ type: z.ZodLiteral<"stream">; streamId: z.ZodUnion; }, z.core.$strict>; resumeAfter: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"error">; error: z.ZodObject<{ code: z.ZodEnum<{ invalid_frame: "invalid_frame"; protocol_mismatch: "protocol_mismatch"; policy_violation: "policy_violation"; overloaded: "overloaded"; internal_error: "internal_error"; }>; message: z.ZodString; retryable: z.ZodBoolean; retryAfter: z.ZodOptional; }, z.core.$strict>; }, z.core.$strict>]>; }; type RealtimeV1Schemas = ReturnType; type RealtimeV1StreamId = z.infer; type RealtimeV1Cursor = z.infer; type RealtimeV1StreamHead = z.infer; type RealtimeTicketV1Response = z.infer; type RealtimeV1TicketRequest = z.infer; type RealtimeV1TicketClaims = z.infer; type RealtimeV1ResourceChange = z.infer; type RealtimeV1Event = z.infer; type RealtimeV1ClientFrame = z.infer; type RealtimeV1ServerFrame = z.infer; export { GSCDUMP_REALTIME_ACK_POLICY, GSCDUMP_REALTIME_CLOSE_CODES, GSCDUMP_REALTIME_CONNECTION_POLICY, GSCDUMP_REALTIME_LIMITS, GSCDUMP_REALTIME_MAX_CONNECTION_SECONDS, GSCDUMP_REALTIME_PING, GSCDUMP_REALTIME_PONG, GSCDUMP_REALTIME_PROTOCOL_VERSION, GSCDUMP_REALTIME_REPLAY_POLICY, GSCDUMP_REALTIME_SUBPROTOCOL, GSCDUMP_REALTIME_TICKET_AUDIENCE, GSCDUMP_REALTIME_TICKET_ISSUER, GSCDUMP_REALTIME_TICKET_POLICY, GSCDUMP_REALTIME_TICKET_PREFIX, GSCDUMP_REALTIME_TICKET_TTL_SECONDS, REALTIME_V1_EVENT_NAMES, REALTIME_V1_EVENT_SEMANTICS, REALTIME_V1_RESOURCE_TYPES, RealtimeTicketV1Response, RealtimeV1ClientFrame, RealtimeV1Cursor, RealtimeV1Event, RealtimeV1ResourceChange, RealtimeV1Schemas, RealtimeV1ServerFrame, RealtimeV1StreamHead, RealtimeV1StreamId, RealtimeV1TicketClaims, RealtimeV1TicketRequest, createRealtimeV1Schemas };