import type { EndpointModelStep } from "./endpoint-model-selection.mjs";
export type WorkspaceConnection = Readonly<{
  baseUrl: string;
  protocol: "runs-api" | "openai-chat" | "openai-responses";
  structuredOutputs?: boolean;
}>;
/** Every request goes through `fetchImpl`; the key is held in memory only. */
export function createWorkspaceConnectionRunsClient(options: {
  connection: WorkspaceConnection;
  apiKey: string;
  fetchImpl: typeof fetch;
  modelSelection: EndpointModelStep;
  responseSchema?: unknown;
}): any;
export function probeRunsClient(
  client: any,
  selection: EndpointModelStep | null,
  options?: { signal?: AbortSignal; submitVerification?: boolean }
): Promise<
  | { state: "READY"; servedRuntime: { provider: string; model: string } }
  | { state: "UNAVAILABLE" }
>;
