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; /** @internal */ export type OutcomeTimeout$Outbound = { type: "timeout"; [additionalProperties: string]: unknown; }; /** @internal */ export declare const OutcomeTimeout$outboundSchema: z.ZodType; export declare function outcomeTimeoutToJSON(outcomeTimeout: OutcomeTimeout): string; export declare function outcomeTimeoutFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OutcomeExit$inboundSchema: z.ZodType; /** @internal */ export type OutcomeExit$Outbound = { exit_code: number; type: "exit"; [additionalProperties: string]: unknown; }; /** @internal */ export declare const OutcomeExit$outboundSchema: z.ZodType; export declare function outcomeExitToJSON(outcomeExit: OutcomeExit): string; export declare function outcomeExitFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Outcome$inboundSchema: z.ZodType; /** @internal */ export type Outcome$Outbound = OutcomeExit$Outbound | OutcomeTimeout$Outbound; /** @internal */ export declare const Outcome$outboundSchema: z.ZodType; export declare function outcomeToJSON(outcome: Outcome): string; export declare function outcomeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ShellCallOutputContent$inboundSchema: z.ZodType; /** @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; export declare function shellCallOutputContentToJSON(shellCallOutputContent: ShellCallOutputContent): string; export declare function shellCallOutputContentFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=shellcalloutputcontent.d.ts.map