/**
 * Copyright 2023 Impulse Innovations Limited
 *
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import { EventEmitter } from 'eventemitter3';
import type { DefaultTheme } from '@darajs/styled-components';
import type { TextureCache } from './texture-cache';
export declare class Background extends EventEmitter<'click'> {
    sprite: PIXI.TilingSprite;
    constructor(theme: DefaultTheme, textureCache: TextureCache, viewport: pixi_viewport.Viewport);
    /**
     * Setup the listeners for the background clicks.
     *
     * The listener is set on the viewport itself as the background is behind
     * the viewport so it does not receive clicks itself.
     *
     * @param viewport viewport to listen to
     */
    private setupListeners;
    private createGfx;
    /**
     * Update the size of the background to fit container
     *
     * @param container
     */
    updatePosition(container: HTMLElement): void;
    /**
     * Update the texture of the sprite based on the theme
     *
     * @param theme theme to get bg color from
     * @param textureCache texture cache to get texture from
     */
    updateTexture(theme: DefaultTheme, textureCache: TextureCache): void;
}
//# sourceMappingURL=background.d.ts.map