import type { components } from '../generated/api.js';
import { WorkspaceScopedResource } from './base.js';
/**
 * Insights — natural-language analytics on workspace data.
 *
 * Surfaces the schema browser, suggestion catalog, ad-hoc SQL execution,
 * and chat sessions that reason over call/world data. Used by the
 * developer console's Insights tab.
 *
 * @beta New in this release; surface may evolve.
 */
export declare class InsightsResource extends WorkspaceScopedResource {
    /** Get the periodic insights digest for the workspace */
    getDigest(): Promise<{
        [x: string]: unknown;
    } & import("../index.js").ResponseMetadata>;
    /** Fetch the queryable schema (tables, columns, joins) the assistant uses */
    getSchema(): Promise<{
        ai_functions: string[];
        databricks_catalogs: string[];
        lakebase_tables: {
            [x: string]: {
                [x: string]: string;
            };
        };
        uc_functions: {
            [x: string]: string;
        }[];
    } & import("../index.js").ResponseMetadata>;
    /** Get curated query suggestions for the workspace */
    getSuggestions(): Promise<{
        suggestions: string[];
    } & import("../index.js").ResponseMetadata>;
    /** Run an ad-hoc SQL query against the insights warehouse */
    runSql(body: components['schemas']['SqlQueryRequest']): Promise<{
        count?: number | null | undefined;
        error?: string | null | undefined;
        results?: {
            [x: string]: unknown;
        }[] | null | undefined;
    } & import("../index.js").ResponseMetadata>;
    readonly sessions: {
        /** Start a new insights chat session */
        create: () => Promise<{
            created_at?: string | null | undefined;
            id: string;
        } & import("../index.js").ResponseMetadata>;
        /** Get a session and its full history */
        get: (sessionId: string) => Promise<{
            [x: string]: unknown;
        } & import("../index.js").ResponseMetadata>;
        /** Send a chat message and get the assistant's response (with any generated SQL/results) */
        chat: (sessionId: string, body: components["schemas"]["ChatRequest"]) => Promise<unknown>;
    };
}
//# sourceMappingURL=insights.d.ts.map