import type { Generic, MethodNameGeneric } from '../RpcSchema.js' import type { Compute, IsNarrowable } from './types.js' /** @internal */ export type ExtractRequestOpaque< schema extends Generic, methodName extends MethodNameGeneric = MethodNameGeneric, > = Compute< Omit< { method: methodName | schema['Request']['method'] params?: unknown } & (methodName extends schema['Request']['method'] ? IsNarrowable extends true ? Extract['Request'] : {} : {}), '' > >