import * as z from "zod/v4";
import * as discriminatedUnionTypes from "../types/discriminatedUnion.js";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
export type OutcomeTimeout = {
    type: "timeout";
    additionalProperties?: {
        [k: string]: any;
    } | undefined;
};
export type OutcomeExit = {
    exitCode: number;
    type: "exit";
    additionalProperties?: {
        [k: string]: any;
    } | undefined;
};
export type Outcome = OutcomeExit | OutcomeTimeout | discriminatedUnionTypes.Unknown<"type">;
/**
 * Captured stdout and stderr for one command of a shell call, with its exit or timeout outcome.
 */
export type ShellCallOutputContent = {
    outcome: OutcomeExit | OutcomeTimeout | discriminatedUnionTypes.Unknown<"type">;
    stderr: string;
    stdout: string;
    additionalProperties?: {
        [k: string]: any;
    } | undefined;
};
/** @internal */
export declare const OutcomeTimeout$inboundSchema: z.ZodType<OutcomeTimeout, unknown>;
/** @internal */
export type OutcomeTimeout$Outbound = {
    type: "timeout";
    [additionalProperties: string]: unknown;
};
/** @internal */
export declare const OutcomeTimeout$outboundSchema: z.ZodType<OutcomeTimeout$Outbound, OutcomeTimeout>;
export declare function outcomeTimeoutToJSON(outcomeTimeout: OutcomeTimeout): string;
export declare function outcomeTimeoutFromJSON(jsonString: string): SafeParseResult<OutcomeTimeout, SDKValidationError>;
/** @internal */
export declare const OutcomeExit$inboundSchema: z.ZodType<OutcomeExit, unknown>;
/** @internal */
export type OutcomeExit$Outbound = {
    exit_code: number;
    type: "exit";
    [additionalProperties: string]: unknown;
};
/** @internal */
export declare const OutcomeExit$outboundSchema: z.ZodType<OutcomeExit$Outbound, OutcomeExit>;
export declare function outcomeExitToJSON(outcomeExit: OutcomeExit): string;
export declare function outcomeExitFromJSON(jsonString: string): SafeParseResult<OutcomeExit, SDKValidationError>;
/** @internal */
export declare const Outcome$inboundSchema: z.ZodType<Outcome, unknown>;
/** @internal */
export type Outcome$Outbound = OutcomeExit$Outbound | OutcomeTimeout$Outbound;
/** @internal */
export declare const Outcome$outboundSchema: z.ZodType<Outcome$Outbound, Outcome>;
export declare function outcomeToJSON(outcome: Outcome): string;
export declare function outcomeFromJSON(jsonString: string): SafeParseResult<Outcome, SDKValidationError>;
/** @internal */
export declare const ShellCallOutputContent$inboundSchema: z.ZodType<ShellCallOutputContent, unknown>;
/** @internal */
export type ShellCallOutputContent$Outbound = {
    outcome: OutcomeExit$Outbound | OutcomeTimeout$Outbound;
    stderr: string;
    stdout: string;
    [additionalProperties: string]: unknown;
};
/** @internal */
export declare const ShellCallOutputContent$outboundSchema: z.ZodType<ShellCallOutputContent$Outbound, ShellCallOutputContent>;
export declare function shellCallOutputContentToJSON(shellCallOutputContent: ShellCallOutputContent): string;
export declare function shellCallOutputContentFromJSON(jsonString: string): SafeParseResult<ShellCallOutputContent, SDKValidationError>;
//# sourceMappingURL=shellcalloutputcontent.d.ts.map