import { type OrderByState } from "../../../"; import { CreateWidgetInput, WidgetDomain, WidgetListResponse, DashboardDomain, DashboardListResponse, DashboardDefinitionSchema } from "./types"; import { z } from "zod/v4"; import { singleFilter } from "../../../"; export declare class DashboardService { /** * Retrieves a list of dashboards for a given project. */ static listDashboards(props: { projectId: string; limit?: number; page?: number; orderBy?: OrderByState; }): Promise; /** * Creates a new dashboard. */ static createDashboard(projectId: string, name: string, description: string, userId?: string, initialDefinition?: z.infer): Promise; /** * Updates a dashboard's definition. */ static updateDashboardDefinition(dashboardId: string, projectId: string, definition: z.infer, userId?: string): Promise; /** * Updates a dashboard's name and description. */ static updateDashboard(dashboardId: string, projectId: string, name: string, description: string, userId?: string): Promise; /** * Updates a dashboard's filters. */ static updateDashboardFilters(dashboardId: string, projectId: string, filters: z.infer[], userId?: string): Promise; /** * Gets a dashboard by ID. */ static getDashboard(dashboardId: string, projectId: string): Promise; /** * Deletes a dashboard. */ static deleteDashboard(dashboardId: string, projectId: string): Promise; /** * Retrieves a list of dashboard widgets for a given project. */ static listWidgets(props: { projectId: string; limit?: number; page?: number; orderBy?: OrderByState; }): Promise; /** * Creates a new dashboard widget. */ static createWidget(projectId: string, input: CreateWidgetInput, userId?: string): Promise; /** * Gets a dashboard widget by ID. Look either in the current project or in the Langfuse managed widgets. */ static getWidget(widgetId: string, projectId: string): Promise; /** * Updates an existing dashboard widget. */ static updateWidget(projectId: string, widgetId: string, input: CreateWidgetInput, userId?: string): Promise; /** * Deletes a dashboard widget. * Throws an error if the widget is still referenced in any dashboard. */ static deleteWidget(widgetId: string, projectId: string): Promise; /** * Copies a Langfuse-owned widget into the user project, rewires the specified dashboard placement to the new widget and returns the new widget id. */ static copyWidgetToProject(props: { sourceWidgetId: string; projectId: string; dashboardId: string; placementId: string; userId?: string; }): Promise; } //# sourceMappingURL=DashboardService.d.ts.map