import type { ExecutionSummary } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/io_pb";
import { SummaryTimeWindow } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/io_pb";
export type { SummaryTimeWindow };
export interface UseWorkflowDashboardSummaryOptions {
    /** Organization slug. When empty, the hook does not fetch. */
    readonly org: string | null | undefined;
    /** Time window for aggregation. @default SUMMARY_TIME_WINDOW_LAST_7D */
    readonly timeWindow?: SummaryTimeWindow;
    /**
     * When set, scopes the summary to executions of this workflow only.
     * When omitted, aggregates across all workflows in the organization.
     *
     * @since T12 (Overview Page Redesign)
     */
    readonly workflowId?: string;
    /** Refetch interval in milliseconds. `0` or `false` disables. @default 0 */
    readonly refetchInterval?: number | false;
}
export interface UseWorkflowDashboardSummaryReturn {
    readonly summary: ExecutionSummary | null;
    readonly isLoading: boolean;
    readonly isRefetching: boolean;
    readonly error: Error | null;
    readonly refetch: () => void;
}
/**
 * Data hook that fetches aggregated execution statistics for an organization,
 * optionally scoped to a single workflow.
 *
 * Returns phase counts, cost totals, average duration, top failing workflows,
 * and per-workflow cost breakdowns — scoped to a configurable time window.
 *
 * @example
 * ```tsx
 * // Org-level dashboard summary
 * const { summary } = useWorkflowDashboardSummary({ org: "acme" });
 *
 * // Per-workflow overview summary
 * const { summary } = useWorkflowDashboardSummary({
 *   org: "acme",
 *   workflowId: "wf-abc123",
 * });
 * ```
 */
export declare function useWorkflowDashboardSummary(options: UseWorkflowDashboardSummaryOptions): UseWorkflowDashboardSummaryReturn;
//# sourceMappingURL=useWorkflowDashboardSummary.d.ts.map