import { InsightGroup } from '../../engine/CreateInsight';
import { TypedExpression } from "@feedloop/expression-parser";
export declare function isTimeseriesInsightGroup(group: InsightGroup<"timeseries" | "column">): group is InsightGroup<"timeseries">;
export type InsightMigration<T extends InsightGroup = any> = {
    table: string;
    name: string;
    groups?: [string, {
        as: T;
    }][];
    aggregates: [string, {
        as: TypedExpression;
    }][];
};
export declare const convertQueryInsight: (columns: any, tableName: string, insightName: string) => {
    aggregates: {
        [k: string]: {
            as: TypedExpression;
        };
    };
    groups: {
        [k: string]: {
            as: InsightGroup<"column" | "timeseries">;
        };
    };
    table: string;
    name: string;
};
