export declare const DEVICE_REMOVED: "DEVICE_REMOVED"; export declare const DEVICE_UNKNOWN: "DEVICE_UNKNOWN"; export declare const ENCRYPTION_FAILURE: "ENCRYPTION_FAILURE"; export declare const IDENTITY_PROOF_INVALID: "IDENTITY_PROOF_INVALID"; export declare const INVITATION_PROOF_INVALID: "INVITATION_PROOF_INVALID"; export declare const JOINED_WRONG_TEAM: "JOINED_WRONG_TEAM"; export declare const MEMBER_REMOVED: "MEMBER_REMOVED"; export declare const NEITHER_IS_MEMBER: "NEITHER_IS_MEMBER"; export declare const SERVER_REMOVED: "SERVER_REMOVED"; export declare const TIMEOUT: "TIMEOUT"; export declare const UNHANDLED: "UNHANDLED"; export declare const connectionErrors: Record; /** Creates an error payload with an appropriate message for the local or remote user */ export declare const createErrorMessage: (type: ConnectionErrorType, destination?: "LOCAL" | "REMOTE") => ErrorMessage | LocalErrorMessage; export type ErrorDefinition = { localMessage: string; remoteMessage?: string; }; export type ConnectionErrorType = keyof typeof connectionErrors; export type ConnectionErrorPayload = { type: ConnectionErrorType; message: string; }; export type ErrorMessage = { type: 'ERROR'; payload: ConnectionErrorPayload; }; export type LocalErrorMessage = { type: 'LOCAL_ERROR'; payload: ConnectionErrorPayload; }; //# sourceMappingURL=errors.d.ts.map