import { ClientOptions } from './Client.ts'; export type ShardingOptions = { shardList?: 'auto' | number[], totalShards?: 'auto' | number, mode?: 'worker' | 'process', respawn?: boolean, shardArgs?: string[], execArgv?: string[], token?: string, path?: string, clientOptions?: ClientOptions } export type ShardOptions = { file: string, token?: string, execArgv?: string[], args?: string[]; respawn?: boolean, clientOptions: ClientOptions totalShards: number } export type BroadcastEvalOptions = { shard?: number, context?: object } export type ShardMethod = 'eval' | 'fetchClientValue'