import { type CanvasEffectsController, type CanvasEffectsControllerOptions, type CanvasEffectsToolProviderOptions, type CanvasNode } from "@pixerate/editor/canvas"; import type { EffectProvider } from "@pixerate/editor/effects"; import type { ToolRegistry } from "@pixerate/editor/tools"; /** * Gives the shape nodes below the calling component an effects provider (see * `@pixerate/editor/effects`), so their `shape.effect` is drawn. Call during initialisation; pass * a getter to follow a changing provider. Without one effects are kept and not drawn. */ export declare function setCanvasEffectsProvider(provider: EffectProvider | null | undefined | (() => EffectProvider | null | undefined)): void; /** The effects provider set by an ancestor with `setCanvasEffectsProvider`, or `null`. */ export declare function getCanvasEffectsProvider(): EffectProvider | null; /** * A canvas effects controller (apply, change and remove node effects, scene transitions) for the * calling component, with `effects` (a getter follows changes) registered while given. */ export declare function createCanvasEffects(options: Omit, "effects"> & { effects?: EffectProvider | null | (() => EffectProvider | null | undefined); }): CanvasEffectsController; /** Registers the canvas effect tools for the lifetime of the calling component. */ export declare function useCanvasEffectsTools(registry: ToolRegistry | null | undefined | (() => ToolRegistry | null | undefined), controller: CanvasEffectsController, options?: CanvasEffectsToolProviderOptions): void;