/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import * as BreadboardUI from "@breadboard-ai/shared-ui"; import type { BoardServer } from "@breadboard-ai/types"; import { HTMLTemplateResult, LitElement, nothing } from "lit"; import { SettingsHelperImpl } from "@breadboard-ai/shared-ui/data/settings-helper.js"; import { TokenVendor } from "@breadboard-ai/connection-client"; import { SigninAdapter } from "@breadboard-ai/shared-ui/utils/signin-adapter.js"; import { SideBoardRuntime } from "@breadboard-ai/shared-ui/sideboards/types.js"; import { GoogleDriveClient } from "@breadboard-ai/google-drive-kit/google-drive-client.js"; import { EmbedState } from "@breadboard-ai/embed"; import { FlowGenerator } from "@breadboard-ai/shared-ui/flow-gen/flow-generator.js"; import { MainArguments } from "./types/types"; import { GlobalConfig } from "@breadboard-ai/shared-ui/contexts"; declare const Main_base: typeof LitElement; export declare class Main extends Main_base { #private; accessor globalConfig: GlobalConfig; accessor settingsHelper: SettingsHelperImpl; accessor tokenVendor: TokenVendor; accessor signinAdapter: SigninAdapter; accessor flowGenerator: FlowGenerator; accessor googleDriveClient: GoogleDriveClient; accessor sideBoardRuntime: SideBoardRuntime; accessor embedState: EmbedState; accessor boardServer: BoardServer | undefined; /** * Monotonically increases whenever the graph topology of a graph in the * current tab changes. Graph topology == any non-visual change to the graph. * - this property is incremented whenever the "update" event is received * from the `GraphStore` instance, which stores and tracks all known graphs, * across all tabs, etc. * - this property is only incremented when the "update" is for the current * tab's graph, but that still works when we switch tabs, since we don't * check the value of the property, just whether it changed. * - because it is decorated with `@state()` on this component, * incrementing this property causes a new render of the component. * - this property is then passed to various sub-components that need to be * aware of graph topology changes. * - these sub-components need to have their own `graphTopologyUpdateId` that * should be decorated as `@property()`, so that the change to this property * causes a new render of that component, too. * - as the resulting effect, incrementing the property will keep the parts * of the UI that need to reflect the latest graph topology up to date. */ accessor graphTopologyUpdateId: number; /** * Similar to graphTopologyUpdateId, but for all graphs in the graph store. * This is useful for tracking all changes to all graphs, like in * component/boards selectors. */ accessor graphStoreUpdateId: number; static styles: import("lit").CSSResultGroup; constructor(args: MainArguments); connectedCallback(): void; disconnectedCallback(): void; untoast(id: string | undefined): void; toast(message: string, type: BreadboardUI.Events.ToastType, persistent?: boolean, id?: `${string}-${string}-${string}-${string}-${string}`): `${string}-${string}-${string}-${string}-${string}`; snackbar(message: string | HTMLTemplateResult, type: BreadboardUI.Types.SnackType, actions?: BreadboardUI.Types.SnackbarAction[], persistent?: boolean, id?: `${string}-${string}-${string}-${string}-${string}`, replaceAll?: boolean): `${string}-${string}-${string}-${string}-${string}` | undefined; unsnackbar(id?: BreadboardUI.Types.SnackbarUUID): void; protected willUpdate(): void; render(): typeof nothing | import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { "bb-main": Main; } } export {}; //# sourceMappingURL=index.d.ts.map