import type { AppRouter } from './trpc';

/**
 * Infer procedure output type
 */
export type InferProcedureOutput<TRouter, TPath extends keyof TRouter> = 
  TRouter extends { output: infer TOutput } 
    ? TOutput extends { [K in TPath]?: infer TProcedure }
      ? TProcedure extends { output: infer TOutputType }
        ? TOutputType
        : never
      : never
    : never;

export type { AppRouter };
