import { useClassFeaturesForSchema, string, unknown, array, Schema } from "@effect-app/prelude/schema"; declare const NotFoundError_base: import("@effect/schema/Schema").Class<{ readonly _tag: "NotFoundError"; readonly id: unknown; readonly type: string; }, { readonly _tag: "NotFoundError"; readonly id: unknown; readonly type: string; }, never, { readonly id: unknown; readonly type: string; }, NotFoundError, { type: import("@effect/schema/Schema").Schema; id: import("@effect/schema/Schema").Schema; }, {}, import("effect/Cause").YieldableError>; /** @tsplus type NotFoundError */ export declare class NotFoundError extends NotFoundError_base { get message(): string; } declare const InvalidStateError_base: import("@effect/schema/Schema").Class<{ readonly _tag: "InvalidStateError"; readonly message: string; }, { readonly _tag: "InvalidStateError"; readonly message: string; }, never, { readonly message: string; }, InvalidStateError, { message: import("@effect/schema/Schema").Schema; }, {}, import("effect/Cause").YieldableError>; /** @tsplus type InvalidStateError */ export declare class InvalidStateError extends InvalidStateError_base { constructor(messageOrObject: string | { message: string; }, disableValidation?: boolean); } declare const ValidationError_base: import("@effect/schema/Schema").Class<{ readonly _tag: "ValidationError"; readonly errors: readonly unknown[]; }, { readonly _tag: "ValidationError"; readonly errors: readonly unknown[]; }, never, { readonly errors: readonly unknown[]; }, ValidationError, { errors: import("@effect/schema/Schema").Schema & { withDefault: import("@effect/schema/Schema").Schema & import("@effect/schema/Schema").ConstructorPropertyDescriptor; }; }, {}, import("effect/Cause").YieldableError>; /** @tsplus type ValidationError */ export declare class ValidationError extends ValidationError_base { get message(): string; } declare const NotLoggedInError_base: import("@effect/schema/Schema").Class<{ readonly _tag: "NotLoggedInError"; readonly message?: string | undefined; }, { readonly _tag: "NotLoggedInError"; readonly message?: string | undefined; }, never, { readonly message?: string | undefined; }, NotLoggedInError, { message: import("@effect/schema/Schema").PropertySignature; }, {}, import("effect/Cause").YieldableError>; /** @tsplus type NotLoggedInError */ export declare class NotLoggedInError extends NotLoggedInError_base { constructor(messageOrObject?: string | { message?: string; }, disableValidation?: boolean); } declare const LoginError_base: import("@effect/schema/Schema").Class<{ readonly _tag: "NotLoggedInError"; readonly message?: string | undefined; }, { readonly _tag: "NotLoggedInError"; readonly message?: string | undefined; }, never, { readonly message?: string | undefined; }, LoginError, { message: import("@effect/schema/Schema").PropertySignature; }, {}, import("effect/Cause").YieldableError>; /** * The user carries a valid Userprofile, but there is a problem with the login none the less. */ /** @tsplus type LoginError */ export declare class LoginError extends LoginError_base { constructor(messageOrObject?: string | { message?: string; }, disableValidation?: boolean); } declare const UnauthorizedError_base: import("@effect/schema/Schema").Class<{ readonly _tag: "UnauthorizedError"; readonly message?: string | undefined; }, { readonly _tag: "UnauthorizedError"; readonly message?: string | undefined; }, never, { readonly message?: string | undefined; }, UnauthorizedError, { message: import("@effect/schema/Schema").PropertySignature; }, {}, import("effect/Cause").YieldableError>; /** @tsplus type UnauthorizedError */ export declare class UnauthorizedError extends UnauthorizedError_base { constructor(messageOrObject?: string | { message?: string; }, disableValidation?: boolean); } type OptimisticConcurrencyDetails = { readonly type: string; readonly id: string; readonly current?: string | undefined; readonly found?: string | undefined; }; declare const OptimisticConcurrencyException_base: import("@effect/schema/Schema").Class<{ readonly _tag: "OptimisticConcurrencyException"; readonly message: string; }, { readonly _tag: "OptimisticConcurrencyException"; readonly message: string; }, never, { readonly message: string; }, OptimisticConcurrencyException, { message: import("@effect/schema/Schema").Schema; }, {}, import("effect/Cause").YieldableError>; /** @tsplus type OptimisticConcurrencyException */ export declare class OptimisticConcurrencyException extends OptimisticConcurrencyException_base { readonly details?: OptimisticConcurrencyDetails; constructor(args: OptimisticConcurrencyDetails | { message: string; }, disableValidation?: boolean); } export declare const SupportedErrors: import("@effect/schema/Schema").Schema, { readonly _tag: "NotFoundError"; readonly id: unknown; readonly type: string; } | { readonly _tag: "InvalidStateError"; readonly message: string; } | { readonly _tag: "ValidationError"; readonly errors: readonly unknown[]; } | { readonly _tag: "NotLoggedInError"; readonly message?: string | undefined; } | { readonly _tag: "NotLoggedInError"; readonly message?: string | undefined; } | { readonly _tag: "UnauthorizedError"; readonly message?: string | undefined; } | { readonly _tag: "OptimisticConcurrencyException"; readonly message: string; }, never>; export type SupportedErrors = Schema.To; export declare const MutationErrors: import("@effect/schema/Schema").Schema, { readonly _tag: "NotFoundError"; readonly id: unknown; readonly type: string; } | { readonly _tag: "InvalidStateError"; readonly message: string; } | { readonly _tag: "ValidationError"; readonly errors: readonly unknown[]; } | { readonly _tag: "NotLoggedInError"; readonly message?: string | undefined; } | { readonly _tag: "NotLoggedInError"; readonly message?: string | undefined; } | { readonly _tag: "UnauthorizedError"; readonly message?: string | undefined; } | { readonly _tag: "OptimisticConcurrencyException"; readonly message: string; }, never>; export declare const QueryErrors: import("@effect/schema/Schema").Schema, { readonly _tag: "NotFoundError"; readonly id: unknown; readonly type: string; } | { readonly _tag: "InvalidStateError"; readonly message: string; } | { readonly _tag: "ValidationError"; readonly errors: readonly unknown[]; } | { readonly _tag: "NotLoggedInError"; readonly message?: string | undefined; } | { readonly _tag: "NotLoggedInError"; readonly message?: string | undefined; } | { readonly _tag: "UnauthorizedError"; readonly message?: string | undefined; } | { readonly _tag: "OptimisticConcurrencyException"; readonly message: string; }, never>; export type MutationErrors = Schema.To; export type QueryErrors = Schema.To; export {}; //# sourceMappingURL=errors.d.ts.map