import React from "react";
import { SWRResponse } from "swr";
import { GetAllRolesAndPermissions200Response, GetSchema200ResponseQueriesInner, GetSchema200ResponseTablesInner, GetSchema200ResponseTablesInnerInsightsInner, GetSchema200ResponseTablesInnerTriggersInner, GetSchema200ResponseTablesInnerViewsInner } from "./client";
import { SchemaResponse } from "./useSchema";
export type DDLResponse = {
    table?: GetSchema200ResponseTablesInner;
    grid?: GetSchema200ResponseTablesInnerViewsInner;
    insight?: GetSchema200ResponseTablesInnerInsightsInner;
    trigger?: GetSchema200ResponseTablesInnerTriggersInner;
    query?: GetSchema200ResponseQueriesInner;
    roles?: Array<{
        value: string;
        text: string;
    }>;
    rolesAndPermission?: SWRResponse<GetAllRolesAndPermissions200Response, any>;
    users?: {
        status: string;
        error: Error | null;
        user: Record<string, any> | null;
    };
    schema?: SchemaResponse;
};
export declare const DDL: React.FC;
export declare const useDDL: () => DDLResponse;
