import { APIResource } from "../../resource.js"; import * as Core from "../../core.js"; import * as FlowsAPI from "./flows.js"; export declare class Flows extends APIResource { /** * Get deployment counts by flow id. */ countDeployments(params: FlowCountDeploymentsParams, options?: Core.RequestOptions): Core.APIPromise; /** * Get the next flow run by flow id. */ nextRuns(params: FlowNextRunsParams, options?: Core.RequestOptions): Core.APIPromise; } export type FlowCountDeploymentsResponse = Record; export type FlowNextRunsResponse = Record; export declare namespace FlowNextRunsResponse { interface item { /** * The flow run id. */ id: string; /** * The flow id. */ flow_id: string; /** * The flow run name */ name: string; /** * The next scheduled start time */ next_scheduled_start_time: string; /** * The state name. */ state_name: string; /** * The state type. */ state_type: 'SCHEDULED' | 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELLED' | 'CRASHED' | 'PAUSED' | 'CANCELLING'; } } export interface FlowCountDeploymentsParams { /** * Body param: */ flow_ids: Array; /** * Header param: */ 'x-prefect-api-version'?: string; } export interface FlowNextRunsParams { /** * Body param: */ flow_ids: Array; /** * Header param: */ 'x-prefect-api-version'?: string; } export declare namespace Flows { export import FlowCountDeploymentsResponse = FlowsAPI.FlowCountDeploymentsResponse; export import FlowNextRunsResponse = FlowsAPI.FlowNextRunsResponse; export import FlowCountDeploymentsParams = FlowsAPI.FlowCountDeploymentsParams; export import FlowNextRunsParams = FlowsAPI.FlowNextRunsParams; } //# sourceMappingURL=flows.d.ts.map