/** * @file Init.Types.ts * @author Gage Sorrell * @copyright (c) 2026 Gage Sorrell * @license MIT */ import type { TCommand, TSubCommandEffect } from "../Command/Command.Types.js"; import type { Args } from "@effect/cli/Args"; import type { Options } from "@effect/cli/Options"; import type { TConfig } from "../Config/Config.Types.js"; import type { TOptions } from "../Options/Options.Types.js"; export type InitOptions = TOptions; export type PackageType = /** The given package is intended to be used with `electron`. */ "electron" /** * The given package is *not* intended to be used with `electron` * or as a script. */ | "none" /** The given package is intended to be a script. */ | "script"; /** * @property {Options} internal - Whether the package should be created as a workspace. * @property {Options} isPrivate - Whether the package should is intended only for use * within the monorepo. * @property {Args} name - The name of the package. * @property {Args} packageType - The intended use case of the package. * @property {Options} tsover - Whether `tsover` should be added. */ export type InitConfig = TConfig<{ internal: Options; name: Args; isPrivate: Options; packageType: Args; tsover: Options; }>; export type InitEffect = TSubCommandEffect; declare const InitRichError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "InitRichError"; } & Readonly; export declare class InitRichError extends InitRichError_base<{ Stringified: string; }> { } declare const InitPlainError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "InitPlainError"; } & Readonly; export declare class InitPlainError extends InitPlainError_base<{}> { } export type InitError = InitPlainError | InitRichError; export type InitCommandType = TCommand<"init", InitConfig, InitError>; export {}; //# sourceMappingURL=Init.Types.d.ts.map