import { APIResource } from "../../core/resource.mjs"; import * as AudioTracksAPI from "./audio-tracks.mjs"; import { Audio, AudioTrackCopyParams, AudioTrackDeleteParams, AudioTrackDeleteResponse, AudioTrackEditParams, AudioTrackGetParams, AudioTrackGetResponse, AudioTracks, BaseAudioTracks } from "./audio-tracks.mjs"; import * as ClipAPI from "./clip.mjs"; import { BaseClipResource, Clip, ClipCreateParams, ClipResource } from "./clip.mjs"; import * as CopyAPI from "./copy.mjs"; import { BaseCopy, Copy, CopyCreateParams } from "./copy.mjs"; import * as DirectUploadAPI from "./direct-upload.mjs"; import { BaseDirectUpload, DirectUpload, DirectUploadCreateParams, DirectUploadCreateResponse } from "./direct-upload.mjs"; import * as DownloadsAPI from "./downloads.mjs"; import { BaseDownloads, DownloadCreateParams, DownloadCreateResponse, DownloadDeleteParams, DownloadDeleteResponse, DownloadGetParams, DownloadGetResponse, Downloads } from "./downloads.mjs"; import * as EmbedAPI from "./embed.mjs"; import { BaseEmbed, Embed, EmbedGetParams, EmbedGetResponse } from "./embed.mjs"; import * as KeysAPI from "./keys.mjs"; import { BaseKeys, KeyCreateParams, KeyDeleteParams, KeyDeleteResponse, KeyGetParams, KeyGetResponse, KeyGetResponsesSinglePage, Keys } from "./keys.mjs"; import * as TokenAPI from "./token.mjs"; import { BaseToken, Token, TokenCreateParams, TokenCreateResponse } from "./token.mjs"; import * as VideosAPI from "./videos.mjs"; import { BaseVideos, VideoStorageUsageParams, VideoStorageUsageResponse, Videos } from "./videos.mjs"; import * as WatermarksAPI from "./watermarks.mjs"; import { BaseWatermarks, Watermark, WatermarkCreateParams, WatermarkDeleteParams, WatermarkDeleteResponse, WatermarkGetParams, WatermarkListParams, Watermarks, WatermarksSinglePage } from "./watermarks.mjs"; import * as WebhooksAPI from "./webhooks.mjs"; import { BaseWebhooks, WebhookDeleteParams, WebhookDeleteResponse, WebhookGetParams, WebhookGetResponse, WebhookUpdateParams, WebhookUpdateResponse, Webhooks } from "./webhooks.mjs"; import * as CaptionsAPI from "./captions/captions.mjs"; import { BaseCaptions, Caption, CaptionGetParams, Captions, CaptionsSinglePage } from "./captions/captions.mjs"; import * as LiveInputsAPI from "./live-inputs/live-inputs.mjs"; import { BaseLiveInputs, LiveInput, LiveInputCreateParams, LiveInputDeleteParams, LiveInputGetParams, LiveInputListParams, LiveInputListResponse, LiveInputUpdateParams, LiveInputs } from "./live-inputs/live-inputs.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { PagePromise, SinglePage } from "../../core/pagination.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; export declare class BaseStream extends APIResource { static readonly _key: readonly ['stream']; /** * Initiates a video upload using the TUS protocol. On success, the server responds * with a status code 201 (created) and includes a `location` header to indicate * where the content should be uploaded. Refer to https://tus.io for protocol * details. * * @example * ```ts * await client.stream.create({ * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * 'Tus-Resumable': '1.0.0', * 'Upload-Length': 0, * }); * ``` */ create(params: StreamCreateParams, options?: RequestOptions): APIPromise; /** * Lists up to 1000 videos from a single request. For a specific range, refer to * the optional parameters. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const video of client.stream.list({ * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * })) { * // ... * } * ``` */ list(params: StreamListParams, options?: RequestOptions): PagePromise; /** * Deletes a video and its copies from Cloudflare Stream. * * @example * ```ts * await client.stream.delete( * 'ea95132c15732412d22c1476fa83f27a', * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ delete(identifier: string, params: StreamDeleteParams, options?: RequestOptions): APIPromise; /** * Edit details for a single video. * * @example * ```ts * const video = await client.stream.edit( * 'ea95132c15732412d22c1476fa83f27a', * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ edit(identifier: string, params: StreamEditParams, options?: RequestOptions): APIPromise