import type { EffectAuthoringSession, EffectAuthoringState, EffectDescription, EffectProvider } from "@pixerate/editor/effects"; /** Anything that takes an effects provider: every editor controller with effects support. */ export interface EffectsHost { useEffects(provider: EffectProvider): () => void; } /** * Registers a provider with an editor for the lifetime of the calling component (call it during * initialisation), following the getters: a new provider replaces the old one, `null` or * `undefined` removes it. Without a provider the editor behaves as without effects support. */ export declare function useEffects(host: EffectsHost | null | undefined | (() => EffectsHost | null | undefined), provider: EffectProvider | null | undefined | (() => EffectProvider | null | undefined)): void; /** An effect's description from the provider, reloaded when the getters change (`null` while loading or on error). */ export declare function effectDescriptionOf(provider: () => EffectProvider | null | undefined, effect: () => string | null | undefined): { readonly description: EffectDescription | null; readonly error: string | null; }; /** * Subscribes a Svelte component to the observable state of an effect authoring session. * Updates reactively whenever the session changes. State is `null` when session is null. */ export declare function effectAuthoringOf(session: EffectAuthoringSession | null | undefined | (() => EffectAuthoringSession | null | undefined)): { readonly state: EffectAuthoringState | null; };