import { AppHost } from "./app"; import { ComponentState, CurrentState } from "./component-state"; export type WorkspaceType = "default" | "agent"; export type StateFailReason = "invalidTransition" | "isCurrentState" | "invalidManualStateRequest" | "staleRequest"; /** * @deprecated This property is deprecated. Use `StateFailReason` instead. */ export type AppStateFailReason = StateFailReason; export type StateChangeResult = { success: false; reason: StateFailReason; state: ComponentState; } | (CurrentState & { success: true; previous: { state: ComponentState; }; }); /** * @deprecated This property is deprecated. Use `StateChangeResult` instead. */ export type AppStateChangeResult = StateChangeResult; type AppStateSetResult = { success: false; reason: string; } | { success: true; state: ComponentState; }; export type AppStartedResult = AppStateSetResult & ({ success: false; } | { success: true; state: "running"; }); export type AppStoppedResult = AppStateSetResult & ({ success: false; } | { success: true; state: "stopped"; }); export type BulkInstances = { hosts: T[]; missingValues?: string[]; }; export type BulkAppInstances = BulkInstances; /** * Options for clearing the app manager. * * When both `force` and `waitForDestroy` are provided, `waitForDestroy` * takes precedence and `force` is ignored. */ export type ClearAppManagerOptions = { /** * @deprecated Use `waitForDestroy` instead. When true, apps are destroyed * without waiting for their graceful shutdown lifecycle to complete. * Ignored when `waitForDestroy` is provided. */ force?: boolean; /** * When true, apps wait for their graceful shutdown lifecycle to complete * before being destroyed. Defaults to false. Takes precedence over the * deprecated `force` property when both are provided. */ waitForDestroy?: boolean; }; export type ClearAppManagerResult = { appInstanceIds: string[]; serviceInstanceIds: string[]; }; export {}; //# sourceMappingURL=types.d.ts.map