import type { Store } from "../store.js"; /** Active-workflow admission throttles and canonical project-path handling. */ export interface RouteThrottleLimits { maxActive?: number; maxActiveScope?: string; maxActivePerProject?: number; maxActivePerProjectGroup?: number; maxPerProfile?: number; } export interface RouteThrottleDecision { allowed: boolean; reason?: string; projectPath: string; projectGroup?: string; limits: RouteThrottleLimits; counts: { global: number; project: number; projectGroup?: number; }; } export declare function routeThrottleLimitsFromOpts(opts: { maxActive?: string; maxActiveScope?: string; maxActivePerProject?: string; maxActivePerProjectGroup?: string; maxPerProfile?: string; }): RouteThrottleLimits; export declare function routeThrottleLimitsFromInputs(opts: { maxActive?: string; maxActiveScope?: string; maxActivePerProject?: string; maxActivePerProjectGroup?: string; maxPerProfile?: string; }, data: Record, metadata: Record): RouteThrottleLimits; export declare function hasThrottleLimits(limits: RouteThrottleLimits): boolean; export declare function normalizeRoutePath(value: string | undefined): string | undefined; export declare function routeProjectGroup(optsGroup: string | undefined, data: Record, metadata: Record): string | undefined; export declare function routeThrottleDecision(store: Store, args: { projectPath: string; projectGroup?: string; routeScope?: string; limits: RouteThrottleLimits; }): RouteThrottleDecision; export declare function routeThrottleDryRunPreview(args: { projectPath: string; projectGroup?: string; limits: RouteThrottleLimits; }): { limits: RouteThrottleLimits; projectGroup?: string | undefined; evaluated: boolean; reason: string; projectPath: string; }; export declare function isExistingGitProjectPath(path: string): boolean; export declare function validateRequiredRouteWorktreeProjectPath(opts: { worktreeMode?: string; }, projectPath: string): void;