import { ColorScheme } from "../../../../platform/theme/common/theme.js"; import { Event, URI } from "../../../sessions.web.main.internal.js"; import { ISessionsChatBackground, ISessionsChatConfiguredBackground, ChatBackgroundImageLayout, SessionsChatBackgroundPreset, ChatBackgroundChangeSource } from "./chatBackgroundService.js"; export declare const ISessionsChatBackgroundService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export interface ISessionsChatBackgroundService { readonly _serviceBrand: undefined; readonly onDidChangeBackground: Event; /** The background to render, or `undefined` when none is configured or the theme hides backgrounds. */ getBackground(): ISessionsChatBackground | undefined; /** The background configured for the given or active color scheme, including while a high contrast theme hides it. */ getConfiguredBackground(colorScheme?: ColorScheme): ISessionsChatConfiguredBackground | undefined; getConfiguredBackgroundImage(): URI | undefined; getRecentBackgroundImages(): readonly URI[]; /** Every image a preference or the recently used list refers to, across both color schemes. */ getReferencedBackgroundImages(): readonly URI[]; getBackgroundImageLayout(colorScheme?: ColorScheme): ChatBackgroundImageLayout; setBackground(background: URI | SessionsChatBackgroundPreset, source: ChatBackgroundChangeSource, colorScheme?: ColorScheme): Promise; clearBackground(source: ChatBackgroundChangeSource, colorScheme?: ColorScheme): Promise; /** Shows the layout, and saves it unless `persist` is false, which previews it without reporting a change. */ setBackgroundImageLayout(layout: ChatBackgroundImageLayout, source: ChatBackgroundChangeSource, persist?: boolean, colorScheme?: ColorScheme): Promise; }