import { UseDisclosureProps } from "@chakra-ui/react";
import { GetSchema200ResponseTablesInner } from "../../client";
import { InsightMigration } from "../helper/insight";
import { InsightGroup } from '../../engine/CreateInsight';
type CreateInsightMigration = {
    table: string;
    name: string;
    groups: Record<string, {
        as: InsightGroup<"column"> | InsightGroup<"timeseries">;
    }>;
    aggregates: Record<string, {
        as: string;
    }>;
};
type AlterInsightMigration = {
    from: string;
    to: string;
    name: string;
    groups: Record<string, {
        as: InsightGroup<"column"> | InsightGroup<"timeseries">;
    }>;
    aggregates: Record<string, {
        as: string;
    }>;
};
export declare const intervalOptions: {
    label: string;
    value: (string | number)[];
}[];
declare function CreateAndUpdateInsightModal({ modalDisclosure, table, defaultValues, queryMigration, variant, }: {
    modalDisclosure: UseDisclosureProps;
    table?: GetSchema200ResponseTablesInner;
    defaultValues: InsightMigration<InsightGroup<"column" | "timeseries">>;
    queryMigration: (data: any) => AlterInsightMigration | CreateInsightMigration;
    variant: "Alter" | "Create";
}): JSX.Element;
export default CreateAndUpdateInsightModal;
