/** * Local `Result` for `@fjall/util/docker`. * * The canonical Result type lives in `@fjall/generator/src/types/Result.ts` * and is re-exported through `@fjall/deploy-core`. We do NOT import either * here: `@fjall/util` has no `@fjall/*` dependencies (it is the root of the * workspace dep graph) and adding one would create a circular workspace * dependency (generator already depends on util). * * The shape below is structurally identical to the canonical Result, so * adapters in `@fjall/cli` (PR 2) and `webapp` (PR 1) consume values * produced here and pass them through to deploy-core consumers without * conversion. If the canonical Result shape ever changes, the bridge will * fail to typecheck — that is the drift signal. * * Reference: `fjall/generator/src/types/Result.ts`. */ export type Result = { success: true; data: T; } | { success: false; error: E; }; export declare function isSuccess(result: Result): result is { success: true; data: T; }; export declare function isFailure(result: Result): result is { success: false; error: E; }; export declare function success(data: T): Result; export declare function failure(error: E): Result;