import * as z from "zod"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type Image = { fileName: string; content: ReadableStream | Blob | ArrayBuffer | Uint8Array; }; export type CannyEdgeDetectionRequestBody = { /** * The image to be processed with canny edge detection */ image: Image | Blob; /** * Scalar minimum threshold for edge detection. Equivalent to `threshold2` in OpenCV. */ maxVal?: number | undefined; /** * Scalar maximum threshold for edge detection. Equivalent to `threshold1` in OpenCV. */ minVal?: number | undefined; }; export type CannyEdgeDetectionRequest = { /** * The account in which the model is */ accountId: string; /** * The ID of the model, e.g. stable-diffusion-xl-1024-v1-0 */ modelId: string; requestBody: CannyEdgeDetectionRequestBody; }; export type CannyEdgeDetectionResponse = ReadableStream | ReadableStream; /** @internal */ export declare const Image$inboundSchema: z.ZodType; /** @internal */ export type Image$Outbound = { fileName: string; content: ReadableStream | Blob | ArrayBuffer | Uint8Array; }; /** @internal */ export declare const Image$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Image$ { /** @deprecated use `Image$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Image$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Image$Outbound` instead. */ type Outbound = Image$Outbound; } export declare function imageToJSON(image: Image): string; export declare function imageFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CannyEdgeDetectionRequestBody$inboundSchema: z.ZodType; /** @internal */ export type CannyEdgeDetectionRequestBody$Outbound = { image: Image$Outbound | Blob; max_val: number; min_val: number; }; /** @internal */ export declare const CannyEdgeDetectionRequestBody$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CannyEdgeDetectionRequestBody$ { /** @deprecated use `CannyEdgeDetectionRequestBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CannyEdgeDetectionRequestBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CannyEdgeDetectionRequestBody$Outbound` instead. */ type Outbound = CannyEdgeDetectionRequestBody$Outbound; } export declare function cannyEdgeDetectionRequestBodyToJSON(cannyEdgeDetectionRequestBody: CannyEdgeDetectionRequestBody): string; export declare function cannyEdgeDetectionRequestBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CannyEdgeDetectionRequest$inboundSchema: z.ZodType; /** @internal */ export type CannyEdgeDetectionRequest$Outbound = { accountId: string; modelId: string; RequestBody: CannyEdgeDetectionRequestBody$Outbound; }; /** @internal */ export declare const CannyEdgeDetectionRequest$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CannyEdgeDetectionRequest$ { /** @deprecated use `CannyEdgeDetectionRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CannyEdgeDetectionRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CannyEdgeDetectionRequest$Outbound` instead. */ type Outbound = CannyEdgeDetectionRequest$Outbound; } export declare function cannyEdgeDetectionRequestToJSON(cannyEdgeDetectionRequest: CannyEdgeDetectionRequest): string; export declare function cannyEdgeDetectionRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CannyEdgeDetectionResponse$inboundSchema: z.ZodType; /** @internal */ export type CannyEdgeDetectionResponse$Outbound = ReadableStream | ReadableStream; /** @internal */ export declare const CannyEdgeDetectionResponse$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CannyEdgeDetectionResponse$ { /** @deprecated use `CannyEdgeDetectionResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType, z.ZodTypeDef, unknown>; /** @deprecated use `CannyEdgeDetectionResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType, z.ZodTypeDef, ReadableStream>; /** @deprecated use `CannyEdgeDetectionResponse$Outbound` instead. */ type Outbound = CannyEdgeDetectionResponse$Outbound; } export declare function cannyEdgeDetectionResponseToJSON(cannyEdgeDetectionResponse: CannyEdgeDetectionResponse): string; export declare function cannyEdgeDetectionResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=cannyedgedetectionop.d.ts.map