import * as z from "zod/v4"; import { OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { ImageGenerationLayerBoundingBox } from "./imagegenerationlayerboundingbox.js"; import { ImageGenerationLayerTextRecognition } from "./imagegenerationlayertextrecognition.js"; /** * Whether the layer image has a transparent background */ export declare const ImageGenerationLayerBackground: { readonly Opaque: "opaque"; readonly Transparent: "transparent"; }; /** * Whether the layer image has a transparent background */ export type ImageGenerationLayerBackground = OpenEnum; /** * Layer metadata, present when the request asked the provider to split the image into layers (Seedream: `provider.options.seed.layer_decomposition: true` with the required `layer_decomposition_options.max_images`, 2 to 16). Decomposition requires `n` to be 1 or omitted; the response returns up to `max_images` images (the base image plus its layers). */ export type ImageGenerationLayer = { /** * Whether the layer image has a transparent background */ background?: ImageGenerationLayerBackground | undefined; /** * Where a layer sits on the base image */ boundingBox?: ImageGenerationLayerBoundingBox | undefined; /** * Provider description of the layer */ description?: string | undefined; /** * Short provider-assigned layer name */ name?: string | undefined; /** * Text found in the layer, present when the provider ran text recognition */ textRecognition?: ImageGenerationLayerTextRecognition | undefined; /** * Stacking order; 0 is the opaque base image and higher values sit on top */ zIndex: number; }; /** @internal */ export declare const ImageGenerationLayerBackground$inboundSchema: z.ZodType; /** @internal */ export declare const ImageGenerationLayer$inboundSchema: z.ZodType; export declare function imageGenerationLayerFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=imagegenerationlayer.d.ts.map