import * as Schema from "effect/Schema";
import { BadRequest, Forbidden, NotFound } from "../../errors.ts";
export declare const InsightsUpdateInput: Schema.Struct<{
    readonly id: Schema.String;
    readonly project_id: Schema.String;
    readonly format: Schema.optional<Schema.Literals<readonly ["csv", "json"]>>;
    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 query: Schema.optional<Schema.Unknown>;
    readonly order: Schema.optional<Schema.NullOr<Schema.Number>>;
    readonly deleted: Schema.optional<Schema.Boolean>;
    readonly dashboards: Schema.optional<Schema.$Array<Schema.Number>>;
    readonly dashboard_tiles: Schema.optional<Schema.$Array<Schema.Struct<{
        readonly id: Schema.optional<Schema.Number>;
        readonly dashboard_id: Schema.optional<Schema.Number>;
        readonly deleted: Schema.optional<Schema.NullOr<Schema.Boolean>>;
    }>>>;
    readonly last_refresh: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly cache_target_age: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly next_allowed_client_refresh: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly result: Schema.optional<Schema.Unknown>;
    readonly hasMore: Schema.optional<Schema.NullOr<Schema.Boolean>>;
    readonly columns: Schema.optional<Schema.NullOr<Schema.$Array<Schema.String>>>;
    readonly created_at: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly created_by: Schema.optional<Schema.NullOr<Schema.Struct<{
        readonly id: Schema.optional<Schema.Number>;
        readonly uuid: Schema.optional<Schema.String>;
        readonly distinct_id: Schema.optional<Schema.NullOr<Schema.String>>;
        readonly first_name: Schema.optional<Schema.String>;
        readonly last_name: Schema.optional<Schema.String>;
        readonly email: Schema.optional<Schema.String>;
        readonly is_email_verified: Schema.optional<Schema.NullOr<Schema.Boolean>>;
        readonly hedgehog_config: Schema.optional<Schema.NullOr<Schema.$Record<Schema.String, Schema.Unknown>>>;
        readonly role_at_organization: Schema.optional<Schema.Unknown>;
    }>>>;
    readonly description: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly updated_at: Schema.optional<Schema.String>;
    readonly tags: Schema.optional<Schema.$Array<Schema.Unknown>>;
    readonly favorited: Schema.optional<Schema.Boolean>;
    readonly last_modified_at: Schema.optional<Schema.String>;
    readonly last_modified_by: Schema.optional<Schema.NullOr<Schema.Struct<{
        readonly id: Schema.optional<Schema.Number>;
        readonly uuid: Schema.optional<Schema.String>;
        readonly distinct_id: Schema.optional<Schema.NullOr<Schema.String>>;
        readonly first_name: Schema.optional<Schema.String>;
        readonly last_name: Schema.optional<Schema.String>;
        readonly email: Schema.optional<Schema.String>;
        readonly is_email_verified: Schema.optional<Schema.NullOr<Schema.Boolean>>;
        readonly hedgehog_config: Schema.optional<Schema.NullOr<Schema.$Record<Schema.String, Schema.Unknown>>>;
        readonly role_at_organization: Schema.optional<Schema.Unknown>;
    }>>>;
    readonly is_sample: Schema.optional<Schema.Boolean>;
    readonly effective_restriction_level: Schema.optional<Schema.Literals<readonly [21, 37]>>;
    readonly effective_privilege_level: Schema.optional<Schema.Literals<readonly [21, 37]>>;
    readonly user_access_level: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly timezone: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly is_cached: Schema.optional<Schema.Boolean>;
    readonly query_status: Schema.optional<Schema.Unknown>;
    readonly hogql: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly types: Schema.optional<Schema.NullOr<Schema.$Array<Schema.Unknown>>>;
    readonly resolved_date_range: Schema.optional<Schema.NullOr<Schema.Struct<{
        readonly date_from: Schema.optional<Schema.String>;
        readonly date_to: Schema.optional<Schema.String>;
    }>>>;
    readonly _create_in_folder: Schema.optional<Schema.String>;
    readonly alerts: Schema.optional<Schema.$Array<Schema.Unknown>>;
    readonly last_viewed_at: Schema.optional<Schema.NullOr<Schema.String>>;
}>;
export type InsightsUpdateInput = typeof InsightsUpdateInput.Type;
export declare const InsightsUpdateOutput: 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 query: Schema.optional<Schema.Unknown>;
    readonly order: Schema.optional<Schema.NullOr<Schema.Number>>;
    readonly deleted: Schema.optional<Schema.Boolean>;
    readonly dashboards: Schema.optional<Schema.$Array<Schema.Number>>;
    readonly dashboard_tiles: Schema.optional<Schema.$Array<Schema.Struct<{
        readonly id: Schema.optional<Schema.Number>;
        readonly dashboard_id: Schema.optional<Schema.Number>;
        readonly deleted: Schema.optional<Schema.NullOr<Schema.Boolean>>;
    }>>>;
    readonly last_refresh: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly cache_target_age: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly next_allowed_client_refresh: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly result: Schema.optional<Schema.Unknown>;
    readonly hasMore: Schema.optional<Schema.NullOr<Schema.Boolean>>;
    readonly columns: Schema.optional<Schema.NullOr<Schema.$Array<Schema.String>>>;
    readonly created_at: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly created_by: Schema.optional<Schema.NullOr<Schema.Struct<{
        readonly id: Schema.optional<Schema.Number>;
        readonly uuid: Schema.optional<Schema.String>;
        readonly distinct_id: Schema.optional<Schema.NullOr<Schema.String>>;
        readonly first_name: Schema.optional<Schema.String>;
        readonly last_name: Schema.optional<Schema.String>;
        readonly email: Schema.optional<Schema.String>;
        readonly is_email_verified: Schema.optional<Schema.NullOr<Schema.Boolean>>;
        readonly hedgehog_config: Schema.optional<Schema.NullOr<Schema.$Record<Schema.String, Schema.Unknown>>>;
        readonly role_at_organization: Schema.optional<Schema.Unknown>;
    }>>>;
    readonly description: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly updated_at: Schema.optional<Schema.String>;
    readonly tags: Schema.optional<Schema.$Array<Schema.Unknown>>;
    readonly favorited: Schema.optional<Schema.Boolean>;
    readonly last_modified_at: Schema.optional<Schema.String>;
    readonly last_modified_by: Schema.optional<Schema.NullOr<Schema.Struct<{
        readonly id: Schema.optional<Schema.Number>;
        readonly uuid: Schema.optional<Schema.String>;
        readonly distinct_id: Schema.optional<Schema.NullOr<Schema.String>>;
        readonly first_name: Schema.optional<Schema.String>;
        readonly last_name: Schema.optional<Schema.String>;
        readonly email: Schema.optional<Schema.String>;
        readonly is_email_verified: Schema.optional<Schema.NullOr<Schema.Boolean>>;
        readonly hedgehog_config: Schema.optional<Schema.NullOr<Schema.$Record<Schema.String, Schema.Unknown>>>;
        readonly role_at_organization: Schema.optional<Schema.Unknown>;
    }>>>;
    readonly is_sample: Schema.optional<Schema.Boolean>;
    readonly effective_restriction_level: Schema.optional<Schema.Literals<readonly [21, 37]>>;
    readonly effective_privilege_level: Schema.optional<Schema.Literals<readonly [21, 37]>>;
    readonly user_access_level: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly timezone: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly is_cached: Schema.optional<Schema.Boolean>;
    readonly query_status: Schema.optional<Schema.Unknown>;
    readonly hogql: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly types: Schema.optional<Schema.NullOr<Schema.$Array<Schema.Unknown>>>;
    readonly resolved_date_range: Schema.optional<Schema.NullOr<Schema.Struct<{
        readonly date_from: Schema.optional<Schema.String>;
        readonly date_to: Schema.optional<Schema.String>;
    }>>>;
    readonly _create_in_folder: Schema.optional<Schema.String>;
    readonly alerts: Schema.optional<Schema.$Array<Schema.Unknown>>;
    readonly last_viewed_at: Schema.optional<Schema.NullOr<Schema.String>>;
}>;
export type InsightsUpdateOutput = typeof InsightsUpdateOutput.Type;
/**
 * DRF ViewSet mixin that gates coalesced responses behind permission checks.
 * The QueryCoalescingMiddleware attaches cached response data to
 * request.META["_coalesced_response"] for followers. This mixin runs DRF's
 * initial() (auth + permissions + throttling) before returning the
 * cached response, ensuring the request is authorized.
 *
 * @param id - Numeric primary key or 8-character `short_id` (for example `AaVQ8Ijw`) identifying the insight.
 * @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/.
 */
export declare const insightsUpdate: import("@distilled.cloud/core/client").OperationMethod<{
    readonly id: string;
    readonly project_id: string;
    readonly format?: "csv" | "json" | undefined;
    readonly short_id?: string | undefined;
    readonly name?: string | null | undefined;
    readonly derived_name?: string | null | undefined;
    readonly query?: unknown;
    readonly order?: number | null | undefined;
    readonly deleted?: boolean | undefined;
    readonly dashboards?: readonly number[] | undefined;
    readonly dashboard_tiles?: readonly {
        readonly id?: number | undefined;
        readonly dashboard_id?: number | undefined;
        readonly deleted?: boolean | null | undefined;
    }[] | undefined;
    readonly last_refresh?: string | null | undefined;
    readonly cache_target_age?: string | null | undefined;
    readonly next_allowed_client_refresh?: string | null | undefined;
    readonly result?: unknown;
    readonly hasMore?: boolean | null | undefined;
    readonly columns?: readonly string[] | null | undefined;
    readonly created_at?: string | null | undefined;
    readonly created_by?: {
        readonly id?: number | undefined;
        readonly uuid?: string | undefined;
        readonly distinct_id?: string | null | undefined;
        readonly first_name?: string | undefined;
        readonly last_name?: string | undefined;
        readonly email?: string | undefined;
        readonly is_email_verified?: boolean | null | undefined;
        readonly hedgehog_config?: {
            readonly [x: string]: unknown;
        } | null | undefined;
        readonly role_at_organization?: unknown;
    } | null | undefined;
    readonly description?: string | null | undefined;
    readonly updated_at?: string | undefined;
    readonly tags?: readonly unknown[] | undefined;
    readonly favorited?: boolean | undefined;
    readonly last_modified_at?: string | undefined;
    readonly last_modified_by?: {
        readonly id?: number | undefined;
        readonly uuid?: string | undefined;
        readonly distinct_id?: string | null | undefined;
        readonly first_name?: string | undefined;
        readonly last_name?: string | undefined;
        readonly email?: string | undefined;
        readonly is_email_verified?: boolean | null | undefined;
        readonly hedgehog_config?: {
            readonly [x: string]: unknown;
        } | null | undefined;
        readonly role_at_organization?: unknown;
    } | null | undefined;
    readonly is_sample?: boolean | undefined;
    readonly effective_restriction_level?: 21 | 37 | undefined;
    readonly effective_privilege_level?: 21 | 37 | undefined;
    readonly user_access_level?: string | null | undefined;
    readonly timezone?: string | null | undefined;
    readonly is_cached?: boolean | undefined;
    readonly query_status?: unknown;
    readonly hogql?: string | null | undefined;
    readonly types?: readonly unknown[] | null | undefined;
    readonly resolved_date_range?: {
        readonly date_from?: string | undefined;
        readonly date_to?: string | undefined;
    } | null | undefined;
    readonly _create_in_folder?: string | undefined;
    readonly alerts?: readonly unknown[] | undefined;
    readonly last_viewed_at?: string | null | undefined;
}, {
    readonly id?: number | undefined;
    readonly short_id?: string | undefined;
    readonly name?: string | null | undefined;
    readonly derived_name?: string | null | undefined;
    readonly query?: unknown;
    readonly order?: number | null | undefined;
    readonly deleted?: boolean | undefined;
    readonly dashboards?: readonly number[] | undefined;
    readonly dashboard_tiles?: readonly {
        readonly id?: number | undefined;
        readonly dashboard_id?: number | undefined;
        readonly deleted?: boolean | null | undefined;
    }[] | undefined;
    readonly last_refresh?: string | null | undefined;
    readonly cache_target_age?: string | null | undefined;
    readonly next_allowed_client_refresh?: string | null | undefined;
    readonly result?: unknown;
    readonly hasMore?: boolean | null | undefined;
    readonly columns?: readonly string[] | null | undefined;
    readonly created_at?: string | null | undefined;
    readonly created_by?: {
        readonly id?: number | undefined;
        readonly uuid?: string | undefined;
        readonly distinct_id?: string | null | undefined;
        readonly first_name?: string | undefined;
        readonly last_name?: string | undefined;
        readonly email?: string | undefined;
        readonly is_email_verified?: boolean | null | undefined;
        readonly hedgehog_config?: {
            readonly [x: string]: unknown;
        } | null | undefined;
        readonly role_at_organization?: unknown;
    } | null | undefined;
    readonly description?: string | null | undefined;
    readonly updated_at?: string | undefined;
    readonly tags?: readonly unknown[] | undefined;
    readonly favorited?: boolean | undefined;
    readonly last_modified_at?: string | undefined;
    readonly last_modified_by?: {
        readonly id?: number | undefined;
        readonly uuid?: string | undefined;
        readonly distinct_id?: string | null | undefined;
        readonly first_name?: string | undefined;
        readonly last_name?: string | undefined;
        readonly email?: string | undefined;
        readonly is_email_verified?: boolean | null | undefined;
        readonly hedgehog_config?: {
            readonly [x: string]: unknown;
        } | null | undefined;
        readonly role_at_organization?: unknown;
    } | null | undefined;
    readonly is_sample?: boolean | undefined;
    readonly effective_restriction_level?: 21 | 37 | undefined;
    readonly effective_privilege_level?: 21 | 37 | undefined;
    readonly user_access_level?: string | null | undefined;
    readonly timezone?: string | null | undefined;
    readonly is_cached?: boolean | undefined;
    readonly query_status?: unknown;
    readonly hogql?: string | null | undefined;
    readonly types?: readonly unknown[] | null | undefined;
    readonly resolved_date_range?: {
        readonly date_from?: string | undefined;
        readonly date_to?: string | undefined;
    } | null | undefined;
    readonly _create_in_folder?: string | undefined;
    readonly alerts?: readonly unknown[] | undefined;
    readonly last_viewed_at?: string | null | undefined;
}, BadRequest | Forbidden | NotFound, import("~/credentials.ts").Credentials>;
//# sourceMappingURL=insightsUpdate.d.ts.map