import { t as GeneratedVideoAsset } from "../../types-BsTYaYET.js";
import { n as GuardedFetchResult } from "../../fetch-guard-Bd0MGBxl.js";
import { n as fetchWithTimeoutGuarded, t as ProviderOperationTimeoutMs } from "../../shared-BP-dpI8m.js";
import "../../provider-http-CXx2gzRB.js";
import "../../video-generation-C5azv0MF.js";
//#region extensions/xai/video-generation-transport.d.ts
export type XaiVideoRequestPolicy = {
  allowPrivateNetwork: boolean;
  dispatcherPolicy?: NonNullable<Parameters<typeof fetchWithTimeoutGuarded>[4]>["dispatcherPolicy"];
};
export declare function fetchXaiVideoResponse(params: {
  url: string;
  init: RequestInit;
  stage: "poll" | "download";
  requestFailedMessage: string;
  auditContext: string;
  timeoutMs?: ProviderOperationTimeoutMs;
  defaultTimeoutMs: number;
  fetchFn: typeof fetch;
} & XaiVideoRequestPolicy): Promise<GuardedFetchResult>;
export declare function downloadXaiVideo(params: {
  url: string;
  timeoutMs?: ProviderOperationTimeoutMs;
  defaultTimeoutMs: number;
  fetchFn: typeof fetch;
  maxBytes: number;
} & XaiVideoRequestPolicy): Promise<GeneratedVideoAsset>;
//#endregion