///
import type { IncomingHttpHeaders } from 'node:http';
import Mux from '@mux/ts';
import { ParsedUploadConfig, StoredTextTrack } from '../../../types/shared-types';
export interface UploadRequestConfig {
/**
* Enable static renditions by setting this to 'standard'. Can be overwritten on a per-asset basis.
* @see {@link https://docs.mux.com/guides/video/enable-static-mp4-renditions#why-enable-mp4-support}
* @defaultValue 'none'
*/
mp4_support?: 'none' | 'standard';
/**
* Max resolution tier can be used to control the maximum resolution_tier your asset is encoded, stored, and streamed at.
* @see {@link https://docs.mux.com/guides/stream-videos-in-4k}
* @defaultValue '1080p'
*/
max_resolution_tier?: '2160p' | '1440p' | '1080p';
signed?: 'true' | 'false';
}
export declare const getMuxClient: () => Promise;
declare const muxService: () => {
getAssetById(assetId: string): Promise;
getAssetByUploadId(uploadId: string): Promise;
getDirectUploadUrl({ config, storedTextTracks, corsOrigin, directives, }: {
config: ParsedUploadConfig;
storedTextTracks: StoredTextTrack[];
corsOrigin?: string;
directives?: Array<{
id: string;
}>;
}): Promise;
createRemoteAsset({ url, config, storedTextTracks, directives, }: {
url: string;
storedTextTracks: StoredTextTrack[];
config: ParsedUploadConfig;
directives?: Array<{
id: string;
}>;
}): Promise;
createPlaybackId(assetId: string, policy: 'public' | 'signed'): Promise;
deleteAsset(assetId: string): Promise;
signPlaybackId(playbackId: string, type: string): Promise<{
token: string & Partial>;
}>;
createAssetTextTracks(assetId: string, tracks: Mux.Video.Assets.AssetCreateTrackParams[]): Promise;
unwrapWebhook(rawBody: string, headers: IncomingHttpHeaders): Promise;
deleteAssetTextTracks(assetId: string, trackIds: string[]): Promise;
};
export default muxService;
export type MuxService = ReturnType;