import * as Schema from "effect/Schema";
import { BadRequest, Forbidden, NotFound } from "../../errors.ts";
export declare const TasksListInput: Schema.Struct<{
    readonly project_id: Schema.String;
    readonly created_by: Schema.optional<Schema.Number>;
    readonly internal: Schema.optional<Schema.Boolean>;
    readonly limit: Schema.optional<Schema.Number>;
    readonly offset: Schema.optional<Schema.Number>;
    readonly organization: Schema.optional<Schema.String>;
    readonly origin_product: Schema.optional<Schema.String>;
    readonly repository: Schema.optional<Schema.String>;
    readonly search: Schema.optional<Schema.String>;
    readonly stage: Schema.optional<Schema.String>;
    readonly status: Schema.optional<Schema.Literals<readonly ["not_started", "queued", "in_progress", "completed", "failed", "cancelled"]>>;
}>;
export type TasksListInput = typeof TasksListInput.Type;
export declare const TasksListOutput: Schema.Struct<{
    readonly count: Schema.optional<Schema.Number>;
    readonly next: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly previous: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly results: Schema.optional<Schema.$Array<Schema.Struct<{
        readonly id: Schema.optional<Schema.String>;
        readonly task_number: Schema.optional<Schema.NullOr<Schema.Number>>;
        readonly slug: Schema.optional<Schema.String>;
        readonly title: Schema.optional<Schema.String>;
        readonly title_manually_set: Schema.optional<Schema.Boolean>;
        readonly description: Schema.optional<Schema.String>;
        readonly origin_product: Schema.optional<Schema.Literals<readonly ["error_tracking", "eval_clusters", "user_created", "automation", "slack", "support_queue", "session_summaries", "signal_report"]>>;
        readonly repository: Schema.optional<Schema.NullOr<Schema.String>>;
        readonly github_integration: Schema.optional<Schema.NullOr<Schema.Number>>;
        readonly signal_report: Schema.optional<Schema.NullOr<Schema.String>>;
        readonly signal_report_task_relationship: Schema.optional<Schema.Literals<readonly ["implementation"]>>;
        readonly json_schema: Schema.optional<Schema.NullOr<Schema.Unknown>>;
        readonly internal: Schema.optional<Schema.Boolean>;
        readonly latest_run: Schema.optional<Schema.NullOr<Schema.$Record<Schema.String, Schema.Unknown>>>;
        readonly created_at: Schema.optional<Schema.String>;
        readonly updated_at: Schema.optional<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 ci_prompt: Schema.optional<Schema.NullOr<Schema.String>>;
    }>>>;
}>;
export type TasksListOutput = typeof TasksListOutput.Type;
/**
 * List tasks
 *
 * Get a list of tasks for the current project, with optional filtering by origin product, stage, organization, repository, and created_by.
 *
 * @param created_by - Filter by creator user ID
 * @param internal - Filter by internal flag. Defaults to excluding internal tasks when not specified.
 * @param limit - Number of results to return per page.
 * @param offset - The initial index from which to return the results.
 * @param organization - Filter by repository organization
 * @param origin_product - Filter by origin product
 * @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 repository - Filter by repository name (can include org/repo format)
 * @param search - Case-insensitive substring search over task title and description. A numeric value also matches the task number. An empty value disables the filter.
 * @param stage - Filter by task run stage
 * @param status - Filter tasks by the status of their most recent run.

* `not_started` - not_started
* `queued` - queued
* `in_progress` - in_progress
* `completed` - completed
* `failed` - failed
* `cancelled` - cancelled
 */
export declare const tasksList: import("@distilled.cloud/core/client").OperationMethod<{
    readonly project_id: string;
    readonly created_by?: number | undefined;
    readonly internal?: boolean | undefined;
    readonly limit?: number | undefined;
    readonly offset?: number | undefined;
    readonly organization?: string | undefined;
    readonly origin_product?: string | undefined;
    readonly repository?: string | undefined;
    readonly search?: string | undefined;
    readonly stage?: string | undefined;
    readonly status?: "cancelled" | "completed" | "failed" | "in_progress" | "not_started" | "queued" | undefined;
}, {
    readonly count?: number | undefined;
    readonly next?: string | null | undefined;
    readonly previous?: string | null | undefined;
    readonly results?: readonly {
        readonly id?: string | undefined;
        readonly task_number?: number | null | undefined;
        readonly slug?: string | undefined;
        readonly title?: string | undefined;
        readonly title_manually_set?: boolean | undefined;
        readonly description?: string | undefined;
        readonly origin_product?: "automation" | "error_tracking" | "eval_clusters" | "session_summaries" | "signal_report" | "slack" | "support_queue" | "user_created" | undefined;
        readonly repository?: string | null | undefined;
        readonly github_integration?: number | null | undefined;
        readonly signal_report?: string | null | undefined;
        readonly signal_report_task_relationship?: "implementation" | undefined;
        readonly json_schema?: unknown;
        readonly internal?: boolean | undefined;
        readonly latest_run?: {
            readonly [x: string]: unknown;
        } | null | undefined;
        readonly created_at?: string | undefined;
        readonly updated_at?: string | 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 ci_prompt?: string | null | undefined;
    }[] | undefined;
}, BadRequest | Forbidden | NotFound, import("~/credentials.ts").Credentials>;
//# sourceMappingURL=tasksList.d.ts.map