import { APIResource } from "../core/resource.js"; import { APIPromise } from "../core/api-promise.js"; import { RequestOptions } from "../internal/request-options.js"; export declare class Components extends APIResource { /** * Run a component with the given inputs */ run(componentID: string, params: ComponentRunParams, options?: RequestOptions): APIPromise; } export type ComponentRunResponse = { [key: string]: unknown; }; export interface ComponentRunParams { /** * Body param: The config to the component */ config: { [key: string]: unknown; }; /** * Body param: The inputs to the component */ inputs: { [key: string]: unknown; }; /** * Body param: The model name */ model_name?: string | null; /** * Header param */ 'Accept-Language'?: string; /** * Header param */ 'X-API-Key'?: string; /** * Header param: Set to `structured` to receive errors in the structured envelope. * Omit it to keep the legacy error body. */ 'X-Error-Format'?: string; } export declare namespace Components { export { type ComponentRunResponse as ComponentRunResponse, type ComponentRunParams as ComponentRunParams }; } //# sourceMappingURL=components.d.ts.map