import { Clip, ClipOptions } from '../../../../index'; /** * Loading state tracked by a placeholder clip while its real media is being resolved. */ export declare enum PlaceholderClipState { Loading = "Loading", Error = "Error", Loaded = "Loaded" } /** * Clip placeholder used while a concrete media clip is still loading or could not be materialized yet. * * Placeholder clips intentionally do not own a sprite. They exist as timeline/library state holders so the * editor can preserve placement, media linkage, and failure state before swapping in the real clip instance. */ export declare class PlaceholderClip extends Clip { private placeholderState; constructor(options: ClipOptions); init(layerId: string): Promise; hasSprite(): boolean; /** * Rebinds the placeholder to a library media id. * * @param mediaId Library media identifier associated with the pending asset. */ setMediaDataId(mediaId: string): void; /** * Returns the linked library media id, if any. * * @returns Media id currently tracked by the placeholder. */ getMediaDataId(): string | undefined; /** * Updates the placeholder's loading/error state. * * @param placeholderState New placeholder state. */ setPlaceholderState(placeholderState: PlaceholderClipState): void; /** * Returns the current placeholder state. * * @returns Placeholder loading state. */ getPlaceholderState(): PlaceholderClipState; }