import { DIVEBackgroundSettings } from '../../../../../index.ts'; import { Action } from '../action.ts'; import { ActionDependencies } from '../../../types/index.ts'; /** * One object rather than a union of two: `State.performAction` builds a union * over every action's payload, and a union here pushes it past what * TypeScript can represent. */ export type SetBackgroundPayload = { /** * A colour, an equirectangular image (URL plus rotation), or * `null` for transparent. Wins over `color`. */ background?: DIVEBackgroundSettings; /** @deprecated Use `background` instead. */ color?: string | number; }; export declare const SetBackgroundAction: new (payload: SetBackgroundPayload, dependencies: Pick) => Action, Promise>; declare global { interface ActionTypes { SET_BACKGROUND: typeof SetBackgroundAction; } }