import type { ParseError } from 'effect/ParseResult'; import * as Schema from 'effect/Schema'; import type { InvalidIdentityError } from '../identity/types.js'; export declare const EventAuthor: Schema.Struct<{ accountAddress: typeof Schema.String; signature: Schema.Struct<{ hex: typeof Schema.String; recovery: typeof Schema.Number; }>; }>; export type EventAuthor = Schema.Schema.Type; export declare const SpaceMember: Schema.Struct<{ accountAddress: typeof Schema.String; role: Schema.Union<[Schema.Literal<["admin"]>, Schema.Literal<["member"]>]>; }>; export type SpaceMember = Schema.Schema.Type; export declare const SpaceInvitation: Schema.Struct<{ inviteeAccountAddress: typeof Schema.String; }>; export type SpaceInvitation = Schema.Schema.Type; export declare const SpaceInbox: Schema.Struct<{ inboxId: typeof Schema.String; encryptionPublicKey: typeof Schema.String; isPublic: typeof Schema.Boolean; authPolicy: Schema.Union<[Schema.Literal<["anonymous"]>, Schema.Literal<["optional_auth"]>, Schema.Literal<["requires_auth"]>]>; secretKey: typeof Schema.String; }>; export type SpaceInbox = Schema.Schema.Type; export declare const SpaceState: Schema.Struct<{ id: typeof Schema.String; invitations: Schema.Record$>; members: Schema.Record$, Schema.Literal<["member"]>]>; }>>; removedMembers: Schema.Record$, Schema.Literal<["member"]>]>; }>>; inboxes: Schema.Record$, Schema.Literal<["optional_auth"]>, Schema.Literal<["requires_auth"]>]>; secretKey: typeof Schema.String; }>>; lastEventHash: typeof Schema.String; }>; export type SpaceState = Schema.Schema.Type; export declare const CreateSpaceEvent: Schema.Struct<{ transaction: Schema.Struct<{ type: Schema.Literal<["create-space"]>; id: typeof Schema.String; creatorAccountAddress: typeof Schema.String; }>; author: Schema.Struct<{ accountAddress: typeof Schema.String; signature: Schema.Struct<{ hex: typeof Schema.String; recovery: typeof Schema.Number; }>; }>; }>; export type CreateSpaceEvent = Schema.Schema.Type; export declare const DeleteSpaceEvent: Schema.Struct<{ transaction: Schema.Struct<{ type: Schema.Literal<["delete-space"]>; id: typeof Schema.String; previousEventHash: typeof Schema.String; }>; author: Schema.Struct<{ accountAddress: typeof Schema.String; signature: Schema.Struct<{ hex: typeof Schema.String; recovery: typeof Schema.Number; }>; }>; }>; export type DeleteSpaceEvent = Schema.Schema.Type; export declare const CreateInvitationEvent: Schema.Struct<{ transaction: Schema.Struct<{ type: Schema.Literal<["create-invitation"]>; id: typeof Schema.String; inviteeAccountAddress: typeof Schema.String; previousEventHash: typeof Schema.String; }>; author: Schema.Struct<{ accountAddress: typeof Schema.String; signature: Schema.Struct<{ hex: typeof Schema.String; recovery: typeof Schema.Number; }>; }>; }>; export type CreateInvitationEvent = Schema.Schema.Type; export declare const CreateSpaceInboxEvent: Schema.Struct<{ transaction: Schema.Struct<{ type: Schema.Literal<["create-space-inbox"]>; id: typeof Schema.String; spaceId: typeof Schema.String; inboxId: typeof Schema.String; encryptionPublicKey: typeof Schema.String; secretKey: typeof Schema.String; isPublic: typeof Schema.Boolean; authPolicy: Schema.Union<[Schema.Literal<["anonymous"]>, Schema.Literal<["optional_auth"]>, Schema.Literal<["requires_auth"]>]>; previousEventHash: typeof Schema.String; }>; author: Schema.Struct<{ accountAddress: typeof Schema.String; signature: Schema.Struct<{ hex: typeof Schema.String; recovery: typeof Schema.Number; }>; }>; }>; export type CreateSpaceInboxEvent = Schema.Schema.Type; export declare const AcceptInvitationEvent: Schema.Struct<{ transaction: Schema.Struct<{ id: typeof Schema.String; type: Schema.Literal<["accept-invitation"]>; previousEventHash: typeof Schema.String; }>; author: Schema.Struct<{ accountAddress: typeof Schema.String; signature: Schema.Struct<{ hex: typeof Schema.String; recovery: typeof Schema.Number; }>; }>; }>; export type AcceptInvitationEvent = Schema.Schema.Type; export declare const SpaceEvent: Schema.Union<[Schema.Struct<{ transaction: Schema.Struct<{ type: Schema.Literal<["create-space"]>; id: typeof Schema.String; creatorAccountAddress: typeof Schema.String; }>; author: Schema.Struct<{ accountAddress: typeof Schema.String; signature: Schema.Struct<{ hex: typeof Schema.String; recovery: typeof Schema.Number; }>; }>; }>, Schema.Struct<{ transaction: Schema.Struct<{ type: Schema.Literal<["delete-space"]>; id: typeof Schema.String; previousEventHash: typeof Schema.String; }>; author: Schema.Struct<{ accountAddress: typeof Schema.String; signature: Schema.Struct<{ hex: typeof Schema.String; recovery: typeof Schema.Number; }>; }>; }>, Schema.Struct<{ transaction: Schema.Struct<{ type: Schema.Literal<["create-invitation"]>; id: typeof Schema.String; inviteeAccountAddress: typeof Schema.String; previousEventHash: typeof Schema.String; }>; author: Schema.Struct<{ accountAddress: typeof Schema.String; signature: Schema.Struct<{ hex: typeof Schema.String; recovery: typeof Schema.Number; }>; }>; }>, Schema.Struct<{ transaction: Schema.Struct<{ id: typeof Schema.String; type: Schema.Literal<["accept-invitation"]>; previousEventHash: typeof Schema.String; }>; author: Schema.Struct<{ accountAddress: typeof Schema.String; signature: Schema.Struct<{ hex: typeof Schema.String; recovery: typeof Schema.Number; }>; }>; }>, Schema.Struct<{ transaction: Schema.Struct<{ type: Schema.Literal<["create-space-inbox"]>; id: typeof Schema.String; spaceId: typeof Schema.String; inboxId: typeof Schema.String; encryptionPublicKey: typeof Schema.String; secretKey: typeof Schema.String; isPublic: typeof Schema.Boolean; authPolicy: Schema.Union<[Schema.Literal<["anonymous"]>, Schema.Literal<["optional_auth"]>, Schema.Literal<["requires_auth"]>]>; previousEventHash: typeof Schema.String; }>; author: Schema.Struct<{ accountAddress: typeof Schema.String; signature: Schema.Struct<{ hex: typeof Schema.String; recovery: typeof Schema.Number; }>; }>; }>]>; export type SpaceEvent = Schema.Schema.Type; export declare const Author: Schema.Struct<{ accountAddress: typeof Schema.String; signaturePublicKey: typeof Schema.String; signaturePrivateKey: typeof Schema.String; encryptionPublicKey: typeof Schema.String; }>; export type Author = Schema.Schema.Type; declare const VerifySignatureError_base: new = {}>(args: import("effect/Types").Equals extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & { readonly _tag: "VerifySignatureError"; } & Readonly; export declare class VerifySignatureError extends VerifySignatureError_base { } declare const InvalidEventError_base: new = {}>(args: import("effect/Types").Equals extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & { readonly _tag: "InvalidEventError"; } & Readonly; export declare class InvalidEventError extends InvalidEventError_base { } export type ApplyError = ParseError | VerifySignatureError | InvalidEventError | InvalidIdentityError; export {}; //# sourceMappingURL=types.d.ts.map