import { ActionBehavior, ActionBehaviorConstructorProps } from '../actionbehavior'; import { Component } from '../component'; import { ContextManager } from '../context'; import { Event } from '../event'; export type DownloadSnapshotProps = ActionBehaviorConstructorProps; /** * Behavior for downloading a captured canvas snapshot as an image. * * @zbehavior * @zicon download * @zgroup Actions */ export declare class DownloadSnapshot extends ActionBehavior { /** * Event triggered when a snapshot is saved. * @zui */ onSave: Event<[]>; constructor(contextManager: ContextManager, instance: Component, props: DownloadSnapshotProps); /** @zprop */ perform(): void; private download; /** @zui */ preview(): void; }