import '../../../assert/js/assert.js';
import '../../../globals.js';
import { CanvasContextWrapper, Filter } from '../imports.js';
export default class Opacity extends Filter {
    private readonly amount;
    /**
     * NOTE: Generally prefer setting a Node's opacity, unless this is required for stacking of filters.
     *
     * @param amount - The amount of opacity, from 0 (invisible) to 1 (fully visible)
     */
    constructor(amount: number);
    /**
     * Returns the CSS-style filter substring specific to this single filter, e.g. `grayscale(1)`. This should be used for
     * both DOM elements (https://developer.mozilla.org/en-US/docs/Web/CSS/filter) and when supported, Canvas
     * (https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter).
     */
    getCSSFilterString(): string;
    isDOMCompatible(): boolean;
    applyCanvasFilter(wrapper: CanvasContextWrapper): void;
    applySVGFilter(svgFilter: SVGFilterElement, inName: string, resultName?: string): void;
}
//# sourceMappingURL=Opacity.d.ts.map