import { MediaProviderDescriptor } from "emdash/media"; //#region src/media/stream.d.ts /** * Cloudflare Stream configuration */ interface CloudflareStreamConfig { /** * Cloudflare Account ID * If not provided, reads from accountIdEnvVar at runtime */ accountId?: string; /** * Environment variable name containing the Account ID * @default "CF_ACCOUNT_ID" */ accountIdEnvVar?: string; /** * API Token with Stream permissions * If not provided, reads from apiTokenEnvVar at runtime * Should have "Stream: Read" and "Stream: Edit" permissions */ apiToken?: string; /** * Environment variable name containing the API token * @default "CF_STREAM_TOKEN" */ apiTokenEnvVar?: string; /** * Customer subdomain for Stream delivery (optional) * If not provided, uses customer-{hash}.cloudflarestream.com format */ customerSubdomain?: string; /** * Default player controls setting * @default true */ controls?: boolean; /** * Autoplay videos (muted by default to comply with browser policies) * @default false */ autoplay?: boolean; /** * Loop videos * @default false */ loop?: boolean; /** * Mute videos * @default false (true if autoplay is enabled) */ muted?: boolean; } /** * Cloudflare Stream media provider * * @example * ```ts * import { cloudflareStream } from "@emdash-cms/cloudflare"; * * emdash({ * mediaProviders: [ * // Uses CF_ACCOUNT_ID and CF_STREAM_TOKEN env vars by default * cloudflareStream({}), * * // Or with custom env var names * cloudflareStream({ * accountIdEnvVar: "MY_CF_ACCOUNT", * apiTokenEnvVar: "MY_CF_STREAM_KEY", * }), * ], * }) * ``` */ declare function cloudflareStream(config: CloudflareStreamConfig): MediaProviderDescriptor; //#endregion export { cloudflareStream as n, CloudflareStreamConfig as t };