export type ShardTargetPlan = { kind: "target"; name: string; target: string; }; export type ShardGroupPlan = { kind: "group"; name: string; plan: { configs: string[]; env?: Record | null; includePatterns?: string[] | null; shard_name?: string; }; }; export type ShardPlan = ShardTargetPlan | ShardGroupPlan; export function resolveShardPlans(env?: Record): ShardPlan[]; export function buildChildEnv( entry: ShardPlan, baseEnv: Record, scratchDir: string, index: number, options?: { serial?: boolean }, ): Record; export function resolveShardChildCommand( args: string[], nodeExecPath?: string, ): { command: string; args: string[] }; export function runShardPlans( plans: ShardPlan[], options?: { concurrency?: number; env?: Record; runChild?: ( args: string[], childEnv: Record, label: string, ) => Promise; scratchDir?: string; }, ): Promise;