import * as PIXI from "pixi.js"; import { Clip, ClipOptions } from "../../Clip"; import { ClipStyle } from "../../ClipStyle"; /** * Options used to create an adjustment clip. * * Adjustment clips reuse the generic `ClipStyle` surface because they render the composited pixels * from lower layers rather than their own media source. */ export interface AdjustmentClipOptions extends ClipOptions { } /** * Clip that captures everything rendered beneath it into a texture so layer-wide filters/effects can be applied. * * Unlike regular media clips, an adjustment clip does not introduce its own source content. During render * it temporarily draws visible clips and transitions from lower layers into an off-screen texture, then * exposes that texture through its own sprite. */ export declare class AdjustmentClip extends Clip> { private renderTexture; private processingClips; private checkProcessingTimeoutId; private isDestroyed; private readonly clipVisibilityRestore; private readonly transitionVisibilityRestore; private clearContainer; constructor(options: AdjustmentClipOptions); init(layerId: string): Promise; onResize(width: number, height: number): Promise; updateVisibility(currentTime: number): void; /** * Expands the visible start bound to include transition-driven pre-roll when this clip is the transition end clip. * * @returns Timeline time at which the adjustment texture may first need to render. */ getLeftRenderBound(): number; /** * Expands the visible end bound to include transition-driven post-roll when this clip is the transition start clip. * * @returns Timeline time at which the adjustment texture can stop rendering. */ getRightRenderBound(): number; update(currentTime: number): void; render(currentTime: number): void; /** * Restores renderability on sprites and transitions that were hidden while building the adjustment texture. * * @param currentTime Current timeline time. Present for API consistency with other clip hooks. */ postRender(currentTime: number): void; getIsProcessing(): boolean; discardProcessing(): void; private checkProcessingClips; /** * Creates a deep clone by round-tripping through serialized clip data. * * @returns Cloned adjustment clip instance. */ clone(): Clip>; /** * Destroys the off-screen resources and restores any temporarily hidden clip render state. */ destroy(): void; }