import { StringId, useClassFeaturesForSchema, ExtendedClass, NonNegativeInt, ExtendedTaggedClass, nullable, NonEmptyString2k, Schema } from "@effect-app/prelude/schema"; import * as S from "./schema.js"; export type OperationId = StringId; export declare const OperationId: S.WithDefaults & { make: () => S.StringId; withDefault: S.Schema & S.ConstructorPropertyDescriptor; }> & S.Schema & { make: () => S.StringId; withDefault: S.Schema & S.ConstructorPropertyDescriptor; }; declare const OperationProgress_base: S.EnhancedClass<{ readonly completed: number & S.NonNegativeIntBrand; readonly total: number & S.NonNegativeIntBrand; }, OperationProgress.From, never, { readonly completed: number & S.NonNegativeIntBrand; readonly total: number & S.NonNegativeIntBrand; }, OperationProgress, { completed: S.WithDefaults> & S.Schema & { withDefault: S.WithDefaults> & S.Schema & S.ConstructorPropertyDescriptor; }; total: S.WithDefaults> & S.Schema & { withDefault: S.WithDefaults> & S.Schema & S.ConstructorPropertyDescriptor; }; }, {}, {}> & { readonly structFrom: S.Schema<{ readonly completed: number & S.NonNegativeIntBrand; readonly total: number & S.NonNegativeIntBrand; }, { readonly completed: number; readonly total: number; }, never>; }; export declare class OperationProgress extends OperationProgress_base { } declare const Success_base: S.EnhancedClass<{ readonly _tag: "Success"; readonly message: (string & S.NonEmptyString2kBrand) | null; }, Success.From, never, { readonly message?: (string & S.NonEmptyString2kBrand) | null; }, Success, { message: S.Schema<(string & S.NonEmptyString2kBrand) | null, string | null, never> & S.ConstructorPropertyDescriptor<(string & S.NonEmptyString2kBrand) | null, string | null, never>; }, {}, {}> & { readonly structFrom: S.Schema<{ readonly _tag: "Success"; readonly message: (string & S.NonEmptyString2kBrand) | null; }, { readonly _tag: "Success"; readonly message: string | null; }, never>; }; export declare class Success extends Success_base { } declare const Failure_base: S.EnhancedClass<{ readonly _tag: "Failure"; readonly message: (string & S.NonEmptyString2kBrand) | null; }, Failure.From, never, { readonly message?: (string & S.NonEmptyString2kBrand) | null; }, Failure, { message: S.Schema<(string & S.NonEmptyString2kBrand) | null, string | null, never> & S.ConstructorPropertyDescriptor<(string & S.NonEmptyString2kBrand) | null, string | null, never>; }, {}, {}> & { readonly structFrom: S.Schema<{ readonly _tag: "Failure"; readonly message: (string & S.NonEmptyString2kBrand) | null; }, { readonly _tag: "Failure"; readonly message: string | null; }, never>; }; export declare class Failure extends Failure_base { } export declare const OperationResult: S.Schema; export type OperationResult = Schema.To; declare const Operation_base: S.EnhancedClass<{ readonly id: string & S.StringIdBrand; readonly createdAt: Date; readonly updatedAt: Date | null; readonly progress?: OperationProgress | undefined; readonly result?: Success | Failure | undefined; }, Operation.From, never, { readonly progress?: OperationProgress | undefined; readonly result?: Success | Failure | undefined; readonly id?: string & S.StringIdBrand; readonly createdAt?: Date; readonly updatedAt?: Date | null; }, Operation, { id: S.WithDefaults & { make: () => S.StringId; withDefault: S.Schema & S.ConstructorPropertyDescriptor; }> & S.Schema & { make: () => S.StringId; withDefault: S.Schema & S.ConstructorPropertyDescriptor; }; progress: S.PropertySignature; result: S.PropertySignature; createdAt: S.Schema & S.ConstructorPropertyDescriptor; updatedAt: S.Schema & S.ConstructorPropertyDescriptor; }, {}, {}> & { readonly structFrom: S.Schema<{ readonly id: string & S.StringIdBrand; readonly createdAt: Date; readonly updatedAt: Date | null; readonly progress?: OperationProgress | undefined; readonly result?: Success | Failure | undefined; }, { readonly id: string; readonly createdAt: string; readonly updatedAt: string | null; readonly progress?: OperationProgress.From | undefined; readonly result?: Success.From | Failure.From | undefined; }, never>; }; export declare class Operation extends Operation_base { } export declare namespace OperationProgress { const From_base: S.FromClass<{ readonly completed: number; readonly total: number; }>; /** * @tsplus type OperationProgress.From * @tsplus companion OperationProgress.From/Ops */ export class From extends From_base { } export {}; } export declare namespace Success { const From_base_1: S.FromClass<{ readonly _tag: "Success"; readonly message: string | null; }>; /** * @tsplus type Success.From * @tsplus companion Success.From/Ops */ export class From extends From_base_1 { } export {}; } export declare namespace Failure { const From_base_2: S.FromClass<{ readonly _tag: "Failure"; readonly message: string | null; }>; /** * @tsplus type Failure.From * @tsplus companion Failure.From/Ops */ export class From extends From_base_2 { } export {}; } export declare namespace Operation { const From_base_3: S.FromClass<{ readonly id: string; readonly createdAt: string; readonly updatedAt: string | null; readonly progress?: OperationProgress.From | undefined; readonly result?: Success.From | Failure.From | undefined; }>; /** * @tsplus type Operation.From * @tsplus companion Operation.From/Ops */ export class From extends From_base_3 { } export {}; } export {}; //# sourceMappingURL=Operations.d.ts.map