import type { GenerationImageInput } from "../_shared/index"; import type { GeneratedMediaOutput } from "../openai/types"; import type { LocalDiffusionCallOptions } from "./types"; /** Local diffusion adapter backed by a line-protocol subprocess. */ export declare class LocalDiffusionGenerationAdapter { #private; /** Whether the current host exposes Node's process runtime. */ static isAvailable(): boolean; /** Construct and validate an adapter. */ constructor(options: unknown); /** Whether this instance can run, honoring its injected probe. */ isAvailable(): boolean; /** Start the backend and wait for its ready event. */ preload(): Promise; /** Synchronously terminate the current process and invalidate all continuations. */ reset(): void; /** Gracefully stop the backend, then force terminate it. Terminal and idempotent. */ dispose(): Promise; /** Async-disposal protocol alias. */ [Symbol.asyncDispose](): Promise; /** Generate images from text. */ generate(prompt: string, opts?: LocalDiffusionCallOptions): Promise; /** Edit images with text guidance. */ edit(inputs: GenerationImageInput | GenerationImageInput[], prompt: string, opts?: LocalDiffusionCallOptions): Promise; }