import * as Schema from "effect/Schema";
import { BadRequest, Forbidden, NotFound } from "../../errors.ts";
export declare const DashboardsRunInsightsRetrieveInput: Schema.Struct<{
    readonly id: Schema.Number;
    readonly project_id: Schema.String;
    readonly format: Schema.optional<Schema.Literals<readonly ["json", "txt"]>>;
    readonly output_format: Schema.optional<Schema.Literals<readonly ["json", "optimized"]>>;
    readonly refresh: Schema.optional<Schema.Literals<readonly ["blocking", "force_blocking", "force_cache"]>>;
}>;
export type DashboardsRunInsightsRetrieveInput = typeof DashboardsRunInsightsRetrieveInput.Type;
export declare const DashboardsRunInsightsRetrieveOutput: Schema.Struct<{
    readonly results: Schema.optional<Schema.$Array<Schema.Struct<{
        readonly id: Schema.optional<Schema.Number>;
        readonly insight: Schema.optional<Schema.Struct<{
            readonly id: Schema.optional<Schema.Number>;
            readonly short_id: Schema.optional<Schema.String>;
            readonly name: Schema.optional<Schema.NullOr<Schema.String>>;
            readonly derived_name: Schema.optional<Schema.NullOr<Schema.String>>;
            readonly result: Schema.optional<Schema.Unknown>;
        }>>;
    }>>>;
}>;
export type DashboardsRunInsightsRetrieveOutput = typeof DashboardsRunInsightsRetrieveOutput.Type;
/**
 * Run all insights on a dashboard and return their results.
 *
 * @param id - A unique integer value identifying this dashboard.
 * @param output_format - 'optimized' (default) returns LLM-friendly formatted text per insight. 'json' returns the raw query result objects.
 * @param project_id - Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 * @param refresh - Cache behavior. 'force_cache' (default) serves from cache even if stale. 'blocking' uses cache if fresh, otherwise recalculates. 'force_blocking' always recalculates.
 */
export declare const dashboardsRunInsightsRetrieve: import("@distilled.cloud/core/client").OperationMethod<{
    readonly format?: "json" | "txt" | undefined;
    readonly id: number;
    readonly output_format?: "json" | "optimized" | undefined;
    readonly project_id: string;
    readonly refresh?: "blocking" | "force_blocking" | "force_cache" | undefined;
}, {
    readonly results?: readonly {
        readonly id?: number | undefined;
        readonly insight?: {
            readonly derived_name?: string | null | undefined;
            readonly id?: number | undefined;
            readonly name?: string | null | undefined;
            readonly result?: unknown;
            readonly short_id?: string | undefined;
        } | undefined;
    }[] | undefined;
}, BadRequest | Forbidden | NotFound, import("~/credentials.ts").Credentials>;
//# sourceMappingURL=dashboardsRunInsightsRetrieve.d.ts.map