video-ad-sdk
Version:
VAST/VPAID SDK that allows video ads to be played on top of any player
20 lines (19 loc) • 690 B
TypeScript
import { VideoAdContainer } from '../../../adContainer';
import type { VastIcon as BaseIcon } from '../../../types';
declare const firstRenderPending: unique symbol;
interface VastIcon extends BaseIcon {
[firstRenderPending]?: boolean;
}
interface AddIconsOptions {
videoAdContainer: VideoAdContainer;
onIconView?(icon: VastIcon): void;
onIconClick?(icon: VastIcon): void;
logger?: Console;
}
export interface AddedIcons {
drawIcons(): Promise<void>;
hasPendingIconRedraws(): boolean;
removeIcons(): void;
}
export declare const addIcons: (icons: VastIcon[], { videoAdContainer, onIconView, onIconClick, ...rest }: AddIconsOptions) => AddedIcons;
export {};