/** * Type definitions for sync and cloud functionality */ import { z } from 'zod'; export declare const SyncConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; endpoint: z.ZodOptional; apiKey: z.ZodOptional; userId: z.ZodOptional; syncInterval: z.ZodDefault; maxRetries: z.ZodDefault; debug: z.ZodDefault; }, "strip", z.ZodTypeAny, { debug: boolean; maxRetries: number; enabled: boolean; syncInterval: number; endpoint?: string | undefined; userId?: string | undefined; apiKey?: string | undefined; }, { debug?: boolean | undefined; maxRetries?: number | undefined; endpoint?: string | undefined; userId?: string | undefined; enabled?: boolean | undefined; apiKey?: string | undefined; syncInterval?: number | undefined; }>; export type SyncConfig = z.infer; export declare const AuthInfoSchema: z.ZodObject<{ userId: z.ZodString; token: z.ZodString; refreshToken: z.ZodOptional; expiresAt: z.ZodOptional; scopes: z.ZodDefault>; }, "strip", z.ZodTypeAny, { token: string; userId: string; scopes: string[]; refreshToken?: string | undefined; expiresAt?: Date | undefined; }, { token: string; userId: string; refreshToken?: string | undefined; expiresAt?: Date | undefined; scopes?: string[] | undefined; }>; export type AuthInfo = z.infer; export declare const SyncDataTypeSchema: z.ZodEnum<["browser_session", "agent_history", "user_preferences", "custom_actions", "screenshots", "telemetry_events"]>; export type SyncDataType = z.infer; export declare const SyncItemSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodEnum<["browser_session", "agent_history", "user_preferences", "custom_actions", "screenshots", "telemetry_events"]>; data: z.ZodRecord; timestamp: z.ZodDate; checksum: z.ZodOptional; version: z.ZodDefault; userId: z.ZodString; }, "strip", z.ZodTypeAny, { type: "screenshots" | "browser_session" | "agent_history" | "user_preferences" | "custom_actions" | "telemetry_events"; id: string; timestamp: Date; data: Record; version: number; userId: string; checksum?: string | undefined; }, { type: "screenshots" | "browser_session" | "agent_history" | "user_preferences" | "custom_actions" | "telemetry_events"; id: string; timestamp: Date; data: Record; userId: string; version?: number | undefined; checksum?: string | undefined; }>; export type SyncItem = z.infer; export declare const SyncOperationSchema: z.ZodObject<{ operation: z.ZodEnum<["create", "update", "delete"]>; item: z.ZodObject<{ id: z.ZodString; type: z.ZodEnum<["browser_session", "agent_history", "user_preferences", "custom_actions", "screenshots", "telemetry_events"]>; data: z.ZodRecord; timestamp: z.ZodDate; checksum: z.ZodOptional; version: z.ZodDefault; userId: z.ZodString; }, "strip", z.ZodTypeAny, { type: "screenshots" | "browser_session" | "agent_history" | "user_preferences" | "custom_actions" | "telemetry_events"; id: string; timestamp: Date; data: Record; version: number; userId: string; checksum?: string | undefined; }, { type: "screenshots" | "browser_session" | "agent_history" | "user_preferences" | "custom_actions" | "telemetry_events"; id: string; timestamp: Date; data: Record; userId: string; version?: number | undefined; checksum?: string | undefined; }>; timestamp: z.ZodDate; }, "strip", z.ZodTypeAny, { timestamp: Date; operation: "create" | "update" | "delete"; item: { type: "screenshots" | "browser_session" | "agent_history" | "user_preferences" | "custom_actions" | "telemetry_events"; id: string; timestamp: Date; data: Record; version: number; userId: string; checksum?: string | undefined; }; }, { timestamp: Date; operation: "create" | "update" | "delete"; item: { type: "screenshots" | "browser_session" | "agent_history" | "user_preferences" | "custom_actions" | "telemetry_events"; id: string; timestamp: Date; data: Record; userId: string; version?: number | undefined; checksum?: string | undefined; }; }>; export type SyncOperation = z.infer; export declare const SyncStatusSchema: z.ZodObject<{ enabled: z.ZodBoolean; connected: z.ZodBoolean; lastSyncTime: z.ZodOptional; pendingOperations: z.ZodDefault; failedOperations: z.ZodDefault; error: z.ZodOptional; }, "strip", z.ZodTypeAny, { enabled: boolean; connected: boolean; pendingOperations: number; failedOperations: number; error?: string | undefined; lastSyncTime?: Date | undefined; }, { enabled: boolean; connected: boolean; error?: string | undefined; lastSyncTime?: Date | undefined; pendingOperations?: number | undefined; failedOperations?: number | undefined; }>; export type SyncStatus = z.infer; //# sourceMappingURL=types.d.ts.map