import { Filter, TimeDimensionGranularity } from "@cubejs-client/core";
import { ConnectionType } from "delphi-node-sdk";
export type SavedQuery = {
    id?: string;
    title: string;
    description: string;
    connectionType: ConnectionType;
    chartType: "area" | "bar" | "bar_list" | "donut" | "line" | "scatter" | "table";
    dimensions: string[];
    metrics: string[];
    dateRange?: {
        from?: string;
        to?: string;
        selectValue?: string | undefined;
    };
    dateFilterField?: string;
    index: string;
    pivot?: string;
    stacked?: boolean;
    filters?: Filter[];
    limit?: number;
    orderBy?: Record<string, "asc" | "desc">;
    timeGranularity?: TimeDimensionGranularity;
    order?: number;
    width?: number;
    height?: number;
    x?: number;
    y?: number;
};
